-
Notifications
You must be signed in to change notification settings - Fork 47
43 lines (33 loc) · 990 Bytes
/
push.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
41
42
43
name: " 🚅 ~ Push Ruby Gems & NPM Packages"
on:
workflow_call:
workflow_dispatch:
jobs:
push:
runs-on: ubuntu-latest
steps:
- uses: "actions/checkout@v3"
- uses: "ruby/setup-ruby@v1"
with:
bundler-cache: true
- name: Enable corepack
run: corepack enable
- uses: "actions/setup-node@v4"
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- name: "Setup ruby gems credentials file"
run: |
mkdir -p $HOME/.gem
touch $HOME/.gem/credentials
chmod 0600 $HOME/.gem/credentials
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
- name: "Install bump"
run: gem install bump
- name: "Install thor"
run: gem install thor
- name: "Release all"
run: ./bin/release-all
env:
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
NODE_AUTH_TOKEN: "${{secrets.NPM_AUTH_TOKEN}}"