Skip to content

chore: release v0.0.0-alpha.6 #6

chore: release v0.0.0-alpha.6

chore: release v0.0.0-alpha.6 #6

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
jobs:
release:
permissions:
id-token: write
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install pnpm
uses: pnpm/action-setup@v3
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: pnpm
registry-url: 'https://registry.npmjs.org'
- name: Add GitHub Orgnization Access Token
run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.ICQQ_GITHUB_TOKEN }}" >> .npmrc
env:
ICQQ_GITHUB_TOKEN: ${{ secrets.ICQQ_GITHUB_TOKEN }}
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build package
run: pnpm run build
- name: Publish package
run: pnpm publish --no-git-checks --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
NPM_CONFIG_PROVENANCE: true
- name: Generate changelog
run: npx changelogithub
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}