back to the old script
This commit is contained in:
29
.github/workflows/release.yml
vendored
29
.github/workflows/release.yml
vendored
@@ -6,39 +6,32 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
env:
|
concurrency: ${{ github.workflow }}-${{ github.ref }}
|
||||||
CI: true
|
|
||||||
PNPM_CACHE_FOLDER: .pnpm-store
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
version:
|
release:
|
||||||
timeout-minutes: 15
|
name: release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: checkout code repository
|
- name: checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: setup node.js
|
- name: setup node
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: 16
|
node-version: 16
|
||||||
|
|
||||||
- name: install pnpm
|
- name: install pnpm
|
||||||
run: npm install pnpm -g
|
run: npm install -g pnpm
|
||||||
|
|
||||||
- name: setup .npmrc
|
- name: install deps
|
||||||
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
|
run: pnpm install --frozen-lockfile
|
||||||
|
|
||||||
- name: setup pnpm config
|
- name: changesets release
|
||||||
run: pnpm config set store-dir $PNPM_CACHE_FOLDER
|
id: changesets
|
||||||
|
|
||||||
- name: install dependencies
|
|
||||||
run: pnpm install
|
|
||||||
|
|
||||||
- name: create and publish versions
|
|
||||||
uses: changesets/action@v1
|
uses: changesets/action@v1
|
||||||
with:
|
with:
|
||||||
publish: pnpm release
|
publish: pnpm run release
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
"format": "prettier --write .",
|
"format": "prettier --write .",
|
||||||
"build": "pnpm -r run build",
|
"build": "pnpm -r run build",
|
||||||
"start": "pnpm -C packages/website run start",
|
"start": "pnpm -C packages/website run start",
|
||||||
"release": "pnpm run build && changeset publish"
|
"release": "pnpm -r run build && changeset publish"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@changesets/cli": "^2.24.0",
|
"@changesets/cli": "^2.24.0",
|
||||||
|
|||||||
Reference in New Issue
Block a user