Skip to content

Version 1.0.3

Version 1.0.3 #3

Workflow file for this run

name: Publish NPM Package
on:
workflow_dispatch:
release:
types: [published]
jobs:
npm:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
# Setup .npmrc file to publish to npm
- name: setup-node
uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
# - name: ci
# run: npm ci
- name: publish-npm
run: npm publish --access=public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
ghpkg:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: checkout
uses: actions/checkout@v4
# Setup .npmrc file to publish to npm
- name: setup-node
uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://npm.pkg.github.com'
scope: '@noclocks'
# - name: ci
# run: npm ci
- name: publish-gh
run: npm publish --access=public
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}