Skip to content

👷 [ci]: Version Packages (#20) #5

👷 [ci]: Version Packages (#20)

👷 [ci]: Version Packages (#20) #5

Workflow file for this run

name: Create PR or Publish packages
on:
push:
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
permissions:
contents: write
pull-requests: write
id-token: write
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Setup pnpm (corepack enabled)
uses: pnpm/action-setup@v3
- name: Setup Node.js 20.x
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4
with:
node-version: 20.x
cache: 'pnpm'
- name: Install Dependencies
run: pnpm ci:install
- name: Build EC Twoslash
run: pnpm ci:build:twoslash
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
setupGitUser: true
commit: "👷 [ci]: Version Packages"
title: "👷 [ci]: Ready for Release"
version: pnpm ci:version
publish: pnpm ci:publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}