Skip to content

Commit

Permalink
chore: fix workflow error
Browse files Browse the repository at this point in the history
  • Loading branch information
atrnh committed Aug 5, 2023
1 parent bd5485f commit f038c1f
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/npm-publish-github-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '17.x'
- run: yarn
node-version: '17'
cache: 'yarn'
- run: yarn install --frozen-lockfile
- run: yarn test

publish-gpr:
Expand All @@ -30,10 +31,13 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '17.x'
registry-url: 'https://npm.pkg.github.com/'
scope: '@DevMountain'
- run: yarn
- run: yarn publish
node-version: '17'
- name: 'Setup .yarnrc.yml'
run: |
yarn config set npmScopes.DevMountain.npmRegistryServer "https://npm.pkg.github.com"
yarn config set npmScopes.DevMountain.npmAlwaysAuth true
yarn config set npmScopes.DevMountain.npmAuthToken $NPM_AUTH_TOKEN
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
NPM_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: yarn install --frozen-lockfile
- run: yarn publish

0 comments on commit f038c1f

Please sign in to comment.