Skip to content

Merge branch 'main' of https://github.com/lippzhang/light-sheet #33

Merge branch 'main' of https://github.com/lippzhang/light-sheet

Merge branch 'main' of https://github.com/lippzhang/light-sheet #33

Workflow file for this run

name: Release
# on:
# release:
# types: [published]
on:
push:
branches:
- main
env:
CI: true
PNPM_CACHE_FOLDER: .pnpm-store
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: 安装 pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: 使用 Nnode.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
registry-url: "https://registry.npmjs.org"
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm run tsc
- run: pnpm run lint
- run: pnpm run test
- run: pnpm run build
- name: Setup npmrc
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
- name: setup pnpm config
run: pnpm config set store-dir $PNPM_CACHE_FOLDER
- name: create and publish versions
uses: changesets/action@v1
with:
version: pnpm ci:version
publish: pnpm ci:publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}