Skip to content

v0.1.2

v0.1.2 #36

Workflow file for this run

name: Publish to npmjs
on:
release:
types: [created]
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.node-version'
- name: Use pnpm
uses: pnpm/action-setup@v3
with:
version: 8
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build package
run: pnpm run build
- name: Run unite test
run: pnpm run test
- name: Set npm publish token
run: echo -e //registry.npmjs.org/:_authToken=${NPM_TOKEN} >> .npmrc
env:
NPM_TOKEN: ${{ secrets.SHINED_NPM_PUBLISH_TOKEN }}
- name: Publish package
run: pnpm run release:action