Skip to content

v0.1.10

v0.1.10 #10

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/bump-version@v2.3.1
with:
tag: ${{ env.VERSION }}
commit: false
- run: |
pnpm build
pnpm publish --access public --publish-branch main --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}