Merge pull request #887 from sheinsight/release-3.5.5 #330
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: publish | |
on: | |
push: | |
tags: | |
- 'version-*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.19.1] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
ref: ${{ github.event.release.tag_name}} | |
- name: Use Pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 9.4.0 | |
- name: dependencies | |
run: pnpm install --frozen-lockfile | |
- name: build | |
run: pnpm run build:pkg | |
- name: set token | |
run: echo -e //registry.npmjs.org/:_authToken=${NPM_TOKEN} >> .npmrc | |
env: | |
NPM_TOKEN: ${{ secrets.SHINEOUT_PUB_TOKEN }} | |
- name: publish | |
run: pnpm run release | |