chore: format #26
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish | |
on: | |
push: | |
branches: ["main"] | |
# branches: | |
# - main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write # read | |
id-token: write | |
# attestations: write | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '14.17.0' | |
registry-url: 'https://registry.npmjs.org' | |
############# NPM RELEASE ############## | |
# - run: npm install -g npm | |
- run: npm i | |
- run: npm ci | |
# - run: npm audit signatures | |
- run: npm publish --provenance --access public | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |