Skip to content

Commit

Permalink
💚 fix publish script
Browse files Browse the repository at this point in the history
 use the new preferred method to install the latest node version
  • Loading branch information
gthvmt committed Dec 18, 2023
1 parent 7f16a9f commit 365c6cc
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/publish.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
#!/bin/bash
curl -fsSL https://deb.nodesource.com/setup_20.x | bash - &&\

# install node
apt install -y ca-certificates curl gnupg
mkdir -p /etc/apt/keyrings
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
NODE_MAJOR=20
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
apt update
apt install -y nodejs

# install & run semantic-release
npm install -g semantic-release @semantic-release/git semantic-release-gitmoji semantic-release-flutter-plugin
npx semantic-release

0 comments on commit 365c6cc

Please sign in to comment.