Skip to content

refactor: updated github release work flow #6

refactor: updated github release work flow

refactor: updated github release work flow #6

Workflow file for this run

name: Release
on:
push:
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
name: Release
timeout-minutes: 10
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/[email protected]
- name: Set node version to 20
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
cache: "pnpm"
- name: Install deps
run: pnpm install
env:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "1"
- name: Linting, Formatting, and Type Checking
run: pnpm vet
- name: Build Package
run: pnpm build
- name: Create Release
id: changeset
uses: changesets/[email protected]
with:
commit: "chore(release): 📦 version packages"
title: "chore(release): 📦 version packages"
publish: npx changeset publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# - name: Send a Slack notification if a publish happens
# if: steps.changesets.outputs.published == 'true'
# run: my-slack-bot send-notification --message "A new version of ${GITHUB_REPOSITORY} was published!"