Publish to GUN-ES to NPM #3
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 to GUN-ES to NPM | |
on: | |
push: | |
tags: | |
- "v.*" | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
contents: write | |
packages: write | |
pull-requests: write | |
issues: read | |
env: | |
NPM_CONFIG_PROVENANCE: true | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
registry-url: https://registry.npmjs.org/ | |
- name: Install packages with NPM | |
run: cd gun-es && npm i --force | |
- name: Build the library | |
run: cd gun-es && npm run build | |
- name: Publish gun-es | |
run: cd gun-es && npm publish --provenance --access public | |
continue-on-error: true | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |