-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Improved actions workflows with Node LTS (#108)
- Loading branch information
Showing
6 changed files
with
5,427 additions
and
2,603 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,32 +2,31 @@ name: Publish to NPM RC | |
|
||
on: | ||
push: | ||
# Sequence of patterns matched against refs/heads | ||
branches: | ||
- 'release-*' | ||
branches: | ||
- "release-*" | ||
|
||
jobs: | ||
publish-npm: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- if: github.event_name == 'push' | ||
uses: actions/checkout@v2 | ||
- if: github.event_name == 'pull_request' | ||
uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 10.16.3 | ||
node-version: 22.11.0 | ||
registry-url: "https://registry.npmjs.org" | ||
- name: Download & Build Icons | ||
run: npm ci --progress=false && npm i @iconscout/unicons@latest && npm run generate | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v3 | ||
uses: peter-evans/create-pull-request@v7 | ||
with: | ||
token: ${{ secrets.GH_AUTH_TOKEN }} | ||
title: Updated Icons | ||
- name: Publish to NPM | ||
uses: primer/[email protected] | ||
run: | | ||
VERSION=$(node -p "require('./package.json').version") | ||
RC_VERSION="${VERSION}-rc.${GITHUB_SHA::8}" | ||
npm version $RC_VERSION --no-git-tag-version | ||
npm publish --tag rc | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GH_AUTH_TOKEN }} | ||
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
v22.11.0 |
Oops, something went wrong.