mirror of
https://codeberg.org/JasterV/imgphash.git
synced 2026-04-26 18:10:01 +00:00
update CI
This commit is contained in:
parent
7657f40e40
commit
15eb6aa814
1 changed files with 5 additions and 3 deletions
8
.github/workflows/npm-publish.yml
vendored
8
.github/workflows/npm-publish.yml
vendored
|
|
@ -4,6 +4,10 @@ on:
|
|||
release:
|
||||
types: [created]
|
||||
|
||||
permissions:
|
||||
id-token: write # Required for OIDC
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
@ -22,8 +26,6 @@ jobs:
|
|||
run: bun test
|
||||
|
||||
- name: Publish to NPM
|
||||
# --access public is required for scoped packages (@your-org/pkg)
|
||||
# --tolerate-republish prevents CI failure if the version already exists
|
||||
run: bun publish --access public --tolerate-republish
|
||||
run: bun publish --access public
|
||||
env:
|
||||
NPM_CONFIG_TOKEN: ${{ secrets.npm_token }}
|
||||
|
|
|
|||
Loading…
Reference in a new issue