Skip to content

Commit

Permalink
Merge pull request #8 from empathyco/npm-secret-token
Browse files Browse the repository at this point in the history
fix(workflow): add NPM secret token
  • Loading branch information
joseacabaneros authored Oct 21, 2024
2 parents d301889 + ec6581c commit 3a8b991
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,15 @@ jobs:
with:
gh-cli-version: 2.49.2

- name: Create version tag
- name: Create tag
if: steps.tag.outputs.name != ''
run: |
git tag -a "${{steps.tag.outputs.name}}" -m "release version ${{steps.tag.outputs.name}}"
git push origin "${{steps.tag.outputs.name}}"
gh release create ${{steps.tag.outputs.name}} --generate-notes --notes-start-tag $(git tag -l "v*.*" | sort -V | tail -2 | head -1)
- name: Create release
if: steps.tag.outputs.name != ''
run: gh release create ${{steps.tag.outputs.name}} --generate-notes --notes-start-tag $(git tag -l "v*.*" | sort -V | tail -2 | head -1)
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}

Expand All @@ -102,7 +105,7 @@ jobs:
npm config set registry="https://registry.npmjs.org/"
npm config set //registry.npmjs.org/:_authToken=${NPM_TOKEN}
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN_GRANULAR_ACCESS }}
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

- name: Publish package
run: npm publish

0 comments on commit 3a8b991

Please sign in to comment.