Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 10 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ jobs:
with:
ruby-version: 2.7

- name: Set up Node.js 22
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'npm'

- name: Semantic Release --dry-run
if: ${{ github.event.inputs.dryRun == 'true'}}
env:
Expand All @@ -44,15 +50,8 @@ jobs:
GIT_COMMITTER_EMAIL: amplitude-sdk-bot@users.noreply.github.com
GEM_HOST_API_KEY: ${{secrets.GEM_HOST_API_KEY}}
run: |
npx \
-p lodash \
-p semantic-release@17 \
-p @semantic-release/changelog@5 \
-p @semantic-release/git@9 \
-p @google/semantic-release-replace-plugin@1.0 \
-p @semantic-release/exec@5 \
-p semantic-release-rubygem \
semantic-release --dry-run
npm ci
npm exec semantic-release -- --dry-run
Comment on lines +53 to +54
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot Use node 22 for set up node js.


- name: Semantic Release
if: ${{ github.event.inputs.dryRun == 'false'}}
Expand All @@ -64,12 +63,5 @@ jobs:
GIT_COMMITTER_EMAIL: amplitude-sdk-bot@users.noreply.github.com
GEM_HOST_API_KEY: ${{secrets.GEM_HOST_API_KEY}}
run: |
npx \
-p lodash \
-p semantic-release@17 \
-p @semantic-release/changelog@5 \
-p @semantic-release/git@9 \
-p @google/semantic-release-replace-plugin@1.0 \
-p @semantic-release/exec@5 \
-p semantic-release-rubygem \
semantic-release
npm ci
npm exec semantic-release
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
.idea/
*.iml
.DS_Store
node_modules/

# Used by dotenv library to load environment variables.
.env
Expand Down
Loading
Loading