noble-curves/.github/workflows/publish-npm.yml

24 lines
655 B
YAML
Raw Normal View History

2023-05-12 21:53:24 +03:00
name: Publish Package to npm
on:
2024-02-14 04:10:37 +03:00
release:
types: [created]
2023-05-12 21:53:24 +03:00
jobs:
2024-02-14 04:10:37 +03:00
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 # v4
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
cache: npm
- run: npm install -g npm
- run: npm ci
- run: npm run build
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}