Adjust workflow file #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Gem release | ||
on: [ push ] | ||
# on: | ||
# push: | ||
# branches: | ||
# - main | ||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: '3.2' # Not needed with a .ruby-version file | ||
- name: Install dependencies | ||
run: npm install && bundle install | ||
- name: Build gem | ||
run: gem build | ||
- name: Semantic Release | ||
uses: cycjimmy/semantic-release-action@v4 | ||
with: | ||
dry_run: true | ||
env: | ||
GEM_HOST_API_KEY: ${{ secrets.GEM_HOST_API_KEY }} | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |