Skip to content

bump v0.3.2-alpha.3 #37

bump v0.3.2-alpha.3

bump v0.3.2-alpha.3 #37

Workflow file for this run

name: Publish packages to npmjs
on:
push:
tags:
- "**"
jobs:
npm-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.x
- uses: pnpm/action-setup@v4
with:
version: 9
- name: Set publishing config
run: pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}"
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: pnpm install
- run: pnpm build
- name: Read package version
id: package_version
run: |
version=$(jq -r .version < ./package.json)
echo "version: $version"
echo "VERSION=$version" >> $GITHUB_ENV
- name: Determine prerelease tag
id: prerelease_check
run: |
if [[ "${{ env.VERSION }}" =~ \-(alpha|beta)\.[0-9]+$ ]]; then
echo "PRERELEASE=--tag beta" >> $GITHUB_ENV
else
echo "PRERELEASE=" >> $GITHUB_ENV
fi
- run: pnpm run publish ${{ env.PRERELEASE }}
github-release:
needs: [npm-publish]
runs-on: ubuntu-latest
steps:
- uses: softprops/action-gh-release@v1
with:
generate_release_notes: true