Skip to content

Commit

Permalink
Merge pull request #2 from creadigme/chore-ci-npm
Browse files Browse the repository at this point in the history
chore(ci.yml): specific token for npm publish
  • Loading branch information
aegenet committed Mar 25, 2023
2 parents 27fe8f5 + 9ab5204 commit 2a4183e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
# node-version: [18.x, 17.x]
steps:
- name: checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
# - name: Use Node.js ${{ matrix.node-version }}
- name: Use Node.js 18.x
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: 18.x
registry-url: 'https://npm.pkg.github.com'
Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:
if: github.event_name == 'release'
env:
CI: true
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
NPM_PUBLISH_PUBLIC: '1'
NPM_PUSH_REGISTRY: https://registry.npmjs.org/
run: node ./.build/build-flow.js publish
Expand All @@ -75,10 +75,10 @@ jobs:
# node-version: [18.x, 17.x]
steps:
- name: checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
# - name: Use Node.js ${{ matrix.node-version }}
- name: Use Node.js 18.x
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: 18.x
registry-url: 'https://npm.pkg.github.com'
Expand All @@ -91,7 +91,7 @@ jobs:
- name: Install dependencies
env:
CI: true
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: rm -rf node_modules && yarn install --frozen-lockfile
- name: lint
run: yarn run lint
Expand Down

0 comments on commit 2a4183e

Please sign in to comment.