Skip to content

Patch release process #8

Patch release process

Patch release process #8

Workflow file for this run

name: Publish
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- run: npm i -g @ifconfigla/nzip
- run: npm i
- run: npm run dist
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Release
uses: softprops/action-gh-release@v1
with:
draft: true
body_path: RELEASE_NOTE.md
files: dist/*
# note you'll typically need to create a personal access token
# with permissions to create releases in the other repo
token: ${{ secrets.GH_TOKEN }}