1.0.22 #23
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: | |
- "v*" | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v2 | |
name: Install pnpm | |
with: | |
version: 9 | |
run_install: false | |
- name: Install Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: lts/* | |
cache: pnpm | |
- name: Install Dependencies | |
run: pnpm i --frozen-lockfile | |
- name: Build | |
run: pnpm clean && pnpm generate && pnpm build && pnpm type-check | |
# - name: Version | |
# env: | |
# TAG_NAME: ${{ github.ref_name }} | |
# run: pnpm version ${TAG_NAME} --no-git-tag-version --allow-same-version | |
- name: Publish | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | |
run: | | |
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc | |
echo "@tooni:registry=https://registry.npmjs.org/" >> ~/.npmrc | |
pnpm publish --no-git-checks --access public |