ci: add release.yml

This commit is contained in:
2024-08-02 01:54:14 +03:00
parent 79093d5653
commit 86e41225d6

41
.github/workflows/release.yml vendored Normal file
View File

@@ -0,0 +1,41 @@
on:
push:
branches:
- master
permissions:
contents: write
pull-requests: write
name: release-please
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm i -g pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm test
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm i -g pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm build
release-please:
needs: build
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
with:
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
release-type: node