Skip to content

v0.1.8

v0.1.8 #8

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@v3
with:
node-version: 18
- 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 --publish-branch main --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}