This repository has been archived by the owner on Sep 18, 2024. It is now read-only.
chore(release): v2.0.0 #30
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: Release | |
on: | |
push: | |
tags: | |
- 'v*' | |
- '!v*-beta*' | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
ref: main | |
- uses: pnpm/action-setup@v2.2.4 | |
with: | |
version: 7 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
registry-url: 'https://registry.npmjs.org' | |
- name: Install deps | |
run: pnpm install | |
- name: Builds | |
run: pnpm build | |
- name: Echo tag name | |
run: echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV | |
- run: pnpm changelogen gh release ${{ env.TAG_NAME }} | |
env: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
- run: pnpm publish | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- run: pnpm tsx scripts/slack.ts | |
env: | |
SLACK_NOTIFICATION_URL: ${{secrets.SLACK_NOTIFICATION_URL}} |