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:
|
release:
|
||||||
types: [created]
|
types: [created]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
id-token: write # Required for OIDC
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
@ -22,8 +26,6 @@ jobs:
|
||||||
run: bun test
|
run: bun test
|
||||||
|
|
||||||
- name: Publish to NPM
|
- name: Publish to NPM
|
||||||
# --access public is required for scoped packages (@your-org/pkg)
|
run: bun publish --access public
|
||||||
# --tolerate-republish prevents CI failure if the version already exists
|
|
||||||
run: bun publish --access public --tolerate-republish
|
|
||||||
env:
|
env:
|
||||||
NPM_CONFIG_TOKEN: ${{ secrets.npm_token }}
|
NPM_CONFIG_TOKEN: ${{ secrets.npm_token }}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue