File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,35 +14,27 @@ jobs:
1414 publish-main :
1515 if : ${{ github.event_name == 'release' }}
1616 runs-on : ubuntu-latest
17+ permissions :
18+ id-token : write
19+ contents : write
1720 steps :
1821 - uses : actions/checkout@v7
22+ with :
23+ persist-credentials : false
1924 - name : Setup Ruby
2025 uses : ruby/setup-ruby@v1
2126 with :
2227 ruby-version : " 3.3"
2328 bundler-cache : true
24- - uses : actions/setup-node@v5
25- with :
26- node-version : 24
27- cache : " npm"
28- - name : Create .gem credentials
29- run : |
30- mkdir -p $HOME/.gem
31- cat << EOF > $HOME/.gem/credentials
32- ---
33- :rubygems_api_key: ${RUBYGEMS_TOKEN}
34- EOF
35- chmod 0600 $HOME/.gem/credentials
36- env :
37- RUBYGEMS_TOKEN : ${{ secrets.RUBYGEMS_TOKEN_SHARED }}
3829 - uses : actions/setup-node@v6
3930 with :
4031 node-version : 24
32+ cache : " npm"
4133 - name : NPM install
4234 run : |
4335 npm ci
4436 - name : Publish Gem
45- run : bundle exec rake release
37+ uses : rubygems/ release-gem@v1
4638 - name : Publish NPM
4739 run : npm publish --access public
4840
You can’t perform that action at this time.
0 commit comments