Skip to content

Commit

Permalink
ci: configure CI for publish
Browse files Browse the repository at this point in the history
  • Loading branch information
mcous committed May 11, 2023
1 parent 6b57a29 commit c458c8d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,11 @@ jobs:
- name: Checkout source
uses: actions/checkout@v3

- name: Install pnpm
uses: pnpm/action-setup@c3b53f6a16e57305370b4ae5a540c2077a1d50dd
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
registry-url: https://registry.npmjs.org

- name: Download publish artifact
uses: actions/download-artifact@v3
Expand All @@ -95,4 +98,6 @@ jobs:
path: dist

- name: Publish to npm
run: pnpm publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"src"
],
"publishConfig": {
"access": "public",
"provenance": true
},
"packageManager": "[email protected]",
Expand Down

0 comments on commit c458c8d

Please sign in to comment.