forked from rails/rails
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (35 loc) · 945 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Release
on:
release:
types: [published]
jobs:
release:
permissions:
contents: write
id-token: write
environment: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ruby
- uses: actions/setup-node@v4
with:
node-version: lts/*
registry-url: 'https://registry.npmjs.org'
- name: Configure trusted publishing credentials
uses: rubygems/[email protected]
- name: Bundle install
run: bundle install
working-directory: tools/releaser
- name: Run release rake task
run: bundle exec rake push
shell: bash
working-directory: tools/releaser
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Wait for release to propagate
run: gem exec rubygems-await pkg/*.gem
shell: bash