Skip to content

fix: Set npm publish access to public #45

fix: Set npm publish access to public

fix: Set npm publish access to public #45

Workflow file for this run

name: Publish
on:
workflow_dispatch:
push:
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- uses: denoland/setup-deno@v1
- run: deno run -A scripts/npm.ts
- run: deno publish
- run: npm publish --provenance --access public
working-directory: ./npm
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}