Skip to content

Commit 7d59a12

Browse files
committed
ci: automate releases
1 parent d86525c commit 7d59a12

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

.github/workflows/release.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
6+
permissions:
7+
contents: write
8+
pull-requests: write
9+
10+
name: release-please
11+
12+
jobs:
13+
release-please:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: googleapis/release-please-action@v4
18+
id: release
19+
with:
20+
release-type: node
21+
22+
- uses: actions/checkout@v4
23+
if: ${{ steps.release.outputs.release_created }}
24+
25+
- run: corepack enable
26+
if: ${{ steps.release.outputs.release_created }}
27+
28+
- uses: actions/setup-node@v4
29+
if: ${{ steps.release.outputs.release_created }}
30+
with:
31+
node-version: 18
32+
cache: yarn
33+
34+
- run: yarn
35+
if: ${{ steps.release.outputs.release_created }}
36+
37+
- run: yarn npm publish --access public
38+
if: ${{ steps.release.outputs.release_created }}
39+
env:
40+
YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
dist
22
coverage
33
**/parser/**/*
4+
CHANGELOG.md
45

56
# Yarn
67
yarn.lock

0 commit comments

Comments
 (0)