0.0.2 #16
This file contains hidden or 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: Release | |
on: | |
push: | |
branches: ['main'] | |
pull_request: | |
types: [opened, synchronize] | |
jobs: | |
build: | |
name: Release | |
timeout-minutes: 15 | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
steps: | |
- name: π Check repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- name: π¦ Setup pnpm # https://github.com/marketplace/actions/setup-pnpm | |
uses: pnpm/action-setup@v4 | |
- name: π¦ Setup Node.js # https://github.com/actions/setup-node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: './package.json' | |
cache: 'pnpm' | |
- name: π Set pnpm token | |
run: pnpm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }} | |
- name: π¦ Install dependencies | |
run: pnpm install --frozen-lockfile | |
# - name: π§ͺ Run tests | |
# run: pnpm test | |
# - name: π οΈ Build project | |
# run: pnpm build | |
- name: π Release | |
run: pnpm release | |
- name: π§Ή Clean up pnpm token | |
run: pnpm config delete //registry.npmjs.org/:_authToken |