Skip to content

Commit

Permalink
Move env configuration to top level
Browse files Browse the repository at this point in the history
  • Loading branch information
leroykorterink committed Feb 23, 2024
1 parent 56853c8 commit f69ea3c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/bump-version-and-publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# NOTE: taken from https://github.com/MylesBorins/node-osc/blob/main/.github/workflows/bump-version.yml

name: Publish package to npmjs
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
on:
release:
types: [created]
Expand All @@ -17,6 +19,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies and build
env:
GSAP_TOKEN: ${{ secrets.GSAP_TOKEN }}
Expand All @@ -26,8 +29,4 @@ jobs:
npm ci
npm run build
- name: Publish
run: |
npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
npm publish --provenance
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish --provenance

0 comments on commit f69ea3c

Please sign in to comment.