Skip to content

Version Packages (v6) (#2673) #801

Version Packages (v6) (#2673)

Version Packages (v6) (#2673) #801

Workflow file for this run

name: Release (v6)
on:
push:
branches:
- v6.x.x
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
name: Release
runs-on: ubuntu-latest
concurrency:
group: release-v6
cancel-in-progress: true
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- uses: pnpm/action-setup@v4
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18
registry-url: "https://registry.npmjs.org"
cache: "pnpm" # https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#caching-packages-dependencies
- name: Install Dependencies
run: pnpm install --frozen-lockfile
- name: Copy schema files
run: pnpm run copy-schema-files
- name: Get version to be published
run: |
cd packages/admin/admin
echo "PUBLISHED_VERSION=$(pnpm pkg get version | sed -r 's/"//g')" >> $GITHUB_ENV
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: dotansimha/changesets-action@cbc5ff3569ae9861100a48b290f4e9c1b94e45b5
with:
version: pnpm run version
publish: pnpm run publish --tag=stable-v6
title: "Version Packages (v6)"
createGithubReleases: aggregate
githubReleaseName: "${{ env.PUBLISHED_VERSION }}"
githubTagName: "v${{ env.PUBLISHED_VERSION }}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
HUSKY: 0 # https://typicode.github.io/husky/#/?id=with-env-variables