Skip to content

Commit

Permalink
Merge pull request #53 from valiantlynx:working
Browse files Browse the repository at this point in the history
_authToken
  • Loading branch information
valiantlynx authored Apr 8, 2024
2 parents 064604d + e5014a9 commit 2fad416
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/changeset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,23 @@ jobs:
node-version: '21'
registry-url: 'https://registry.npmjs.org/'
scope: '@valiantlynx'

- name: Install Dependencies
run: yarn

- name: Build
run: yarn build && yarn package

- name: Configure .npmrc for Publishing
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> .npmrc
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
publish: yarn release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# The NPM_TOKEN is now only necessary if the publish script or any other step explicitly requires it,
# but the setup-node action has already configured npm authentication globally for this job.
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 2fad416

Please sign in to comment.