Skip to content

Commit 73b2ac1

Browse files
authored
chore: create release job (#9)
1 parent 5447125 commit 73b2ac1

File tree

2 files changed

+32
-2
lines changed

2 files changed

+32
-2
lines changed

.github/workflows/release-pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
name: Release PR
2+
13
on:
24
push:
35
branches:
@@ -7,8 +9,6 @@ permissions:
79
contents: write
810
pull-requests: write
911

10-
name: release-please
11-
1212
jobs:
1313
release-please:
1414
runs-on: ubuntu-latest

.github/workflows/release.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Release
2+
3+
on:
4+
pull_request:
5+
types: [closed]
6+
branches:
7+
- master
8+
9+
jobs:
10+
Release:
11+
name: 🚀 Release
12+
if: github.event.pull_request.merged && startsWith(github.head_ref, 'release-please--branches--main')
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
with:
17+
fetch-depth: 0
18+
- name: Setup Node
19+
uses: actions/setup-node@v3
20+
with:
21+
node-version: 18
22+
cache: "yarn"
23+
24+
- name: Install Dependencies
25+
run: yarn install --immutable
26+
27+
- name: Publish package
28+
run: npm publish
29+
env:
30+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)