Skip to content

Commit

Permalink
Add creating .npmrc step
Browse files Browse the repository at this point in the history
  • Loading branch information
emmatown committed Jan 14, 2024
1 parent 0da0eb9 commit 3e636d4
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/publish_snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,16 @@ jobs:
- run: yarn build

- name: Creating .npmrc
run: |
cat << EOF > "$HOME/.npmrc"
//registry.npmjs.org/:_authToken=$NPM_TOKEN
EOF
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: npm publish, git tag
run: yarn changeset publish --tag ${{ inputs.tag }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

# reset, then push the dangling commit
- name: git push
Expand Down

0 comments on commit 3e636d4

Please sign in to comment.