Skip to content

Commit

Permalink
Create corresponding git tag on stable publishing (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
cortinico authored Jun 20, 2024
1 parent 823345a commit 5f5e366
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,17 @@ jobs:
uses: actions/[email protected]
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
- name: Create corresponding git tag
uses: actions/github-script@v5
with:
script: |
github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: 'refs/tags/${{ inputs.version }}',
sha: context.sha
})
- name: Update versions to input one
run: node updateTemplateVersion.js "${{ inputs.version }}"
- name: Publish NPM
Expand Down

0 comments on commit 5f5e366

Please sign in to comment.