Skip to content

fix(ci): add permissions #11

fix(ci): add permissions

fix(ci): add permissions #11

Workflow file for this run

on: push
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
packages: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci --audit=false --fund=false
- run: npm run build
- run: npm version prerelease --no-git-tag-version --preid ${{ github.ref_name }}-${{ github.sha }}
#### PUBLISH TO NPM ####
- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
access: public
tag: latest
provenance: true
#### PUBLISH TO GITHUB NPM ####
- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
registry: https://npm.pkg.github.com
access: public
tag: beta