Skip to content

v1.1.1

v1.1.1 #15

Workflow file for this run

name: Publish Package to npmjs
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v4
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- uses: pnpm/action-setup@v3
name: Install pnpm
with:
version: 8
run_install: true
- name: Set version
run: |
TAG=${{ github.event.release.tag_name }}
echo "VERSION=${TAG:v}" >> $GITHUB_ENV
- name: Bump Version of package.json
uses: ramonpaolo/[email protected]
with:
tag: ${{ env.VERSION }}
commit: false
- run: |
pnpm build
pnpm custom:publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}