Skip to content

Commit

Permalink
adding environment variables to semantic release step (#14)
Browse files Browse the repository at this point in the history
💚 adding environment variables to semantic release step
  • Loading branch information
t1agob authored Sep 18, 2023
2 parents cae190c + d330d27 commit c82d9c5
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,17 @@ jobs:
run: yarn lint
- name: Build
run: yarn build
- name: Replace Action
uses: datamonsters/replace-action@v2
with:
files: ./.yarnrc.yml
replacements: NPM_TOKEN=${{secrets.npm_token}}
# - name: Replace Action
# uses: datamonsters/replace-action@v2
# with:
# files: ./.yarnrc.yml
# replacements: NPM_TOKEN=${{secrets.npm_token}}
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
YARN_NPM_PUBLISH_REGISTRY: https://registry.npmjs.org
run: npx semantic-release
# - name: Publish beta version to NPM (uses package.json version)
# run: yarn npm publish --tag stable --access public

0 comments on commit c82d9c5

Please sign in to comment.