Skip to content

Commit

Permalink
(chore) Configure auth for publishing scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
denniskigen committed Mar 5, 2024
1 parent 5e423c7 commit b4b2c7a
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,17 @@ jobs:
- run: git add . && git commit -m "Prerelease version" --no-verify

- name: Pre-release
run: yarn run ci:prepublish
run: yarn config set npmAuthToken "${NODE_AUTH_TOKEN}" && yarn run ci:prepublish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: packages
path: |
packages/**/dist
release:
runs-on: ubuntu-latest
needs: build
Expand Down Expand Up @@ -121,8 +128,7 @@ jobs:
- name: Build
run: yarn turbo run build --color --concurrency=5

- name: Publish
run: yarn run ci:publish
- run: yarn config set npmAuthToken "${NODE_AUTH_TOKEN}" && yarn run ci:publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

Expand Down

0 comments on commit b4b2c7a

Please sign in to comment.