Skip to content

Publish to GUN-ES to NPM #3

Publish to GUN-ES to NPM

Publish to GUN-ES to NPM #3

Workflow file for this run

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 }}