mirror of
https://github.com/stoatchat/javascript-client-api.git
synced 2026-07-16 05:31:52 -04:00
ci: use trusted publishing (#37)
This commit is contained in:
@@ -12,6 +12,7 @@ jobs:
|
||||
permissions:
|
||||
contents: write
|
||||
id-token: write
|
||||
packages: write
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
@@ -60,10 +61,8 @@ jobs:
|
||||
message: "chore: bump version to ${{ steps.check-api.outputs.api-version }} [skip ci]"
|
||||
|
||||
- name: Publish to npm
|
||||
run: npm publish --provenance --ignore-scripts
|
||||
run: pnpm publish --access public --provenance --no-git-checks
|
||||
if: steps.check-tag.outputs.exists == 'false'
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
|
||||
- name: Checkout stoat.js repository
|
||||
if: steps.check-tag.outputs.exists == 'false'
|
||||
|
||||
Reference in New Issue
Block a user