Skip to content

Commit abd0eae

Browse files
committed
feat: add release workflow on tag creation
1 parent d90dd06 commit abd0eae

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/release.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags: ["v*"]
6+
7+
jobs:
8+
rubygems:
9+
name: Publish to RubyGems
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
id-token: write
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: ruby/setup-ruby@v1
17+
with:
18+
ruby-version: "3.3"
19+
bundler-cache: true
20+
- run: bundle exec rake test
21+
- run: bundle exec standardrb
22+
- uses: rubygems/release-gem@v1
23+
24+
npm:
25+
name: Publish to npm
26+
runs-on: ubuntu-latest
27+
permissions:
28+
contents: read
29+
id-token: write
30+
steps:
31+
- uses: actions/checkout@v4
32+
- uses: actions/setup-node@v4
33+
with:
34+
node-version: "20"
35+
registry-url: "https://registry.npmjs.org"
36+
- run: npm publish --provenance

0 commit comments

Comments
 (0)