2024-08-22 14:10:08 +05:30
|
|
|
name: Release
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
concurrency: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
release:
|
|
|
|
name: Release
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout Repo
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- uses: pnpm/action-setup@v4
|
|
|
|
|
|
|
|
- name: Setup Node.js
|
|
|
|
uses: actions/setup-node@v4
|
|
|
|
with:
|
|
|
|
cache: pnpm
|
|
|
|
node-version-file: '.node-version'
|
|
|
|
|
|
|
|
- name: Install Packages
|
|
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
|
|
|
|
- name: Create Release Pull Request or Publish to npm
|
|
|
|
id: changesets
|
|
|
|
uses: changesets/action@v1
|
|
|
|
with:
|
2024-08-22 15:21:48 +05:30
|
|
|
version: pnpm changeset:version
|
|
|
|
publish: pnpm changeset:publish
|
2024-08-22 14:10:08 +05:30
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
2024-08-24 15:34:53 +05:30
|
|
|
NPM_CONFIG_PROVENANCE: true
|