Skip to content

Commit

Permalink
chore: publish on tag
Browse files Browse the repository at this point in the history
  • Loading branch information
9oelM committed Dec 10, 2024
1 parent 45ab397 commit 464f441
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,18 @@ jobs:
with:
node-version-file: '.nvmrc'
always-auth: true
registry-url: "https://registry.npmjs.org"
- name: Install Yarn
run: npm install -g yarn
- name: Install dependencies
run: yarn
- name: Build
run: yarn build
- name: Setup .yarnrc.yml
run: |
yarn config set npmAuthToken $NPM_AUTH_TOKEN
yarn config set npmAlwaysAuth true

- name: Publish to npm
run: npm publish --provenance --access public
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
- name: Publish
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
run: yarn npm publish --access public
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

- name: Verify publish
run: npm info @blubbofi/sandbox

0 comments on commit 464f441

Please sign in to comment.