-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dependency and Node versions. (#68)
* Update dependency and Node versions. * Re-lock.
- Loading branch information
1 parent
c451059
commit 17d9392
Showing
5 changed files
with
499 additions
and
529 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,10 +10,12 @@ jobs: | |
steps: | ||
- name: Checkout the action | ||
uses: actions/checkout@v4 | ||
- name: Setup Node.js 16.x | ||
|
||
- name: Setup Node.js 20.x | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 16 | ||
node-version: 20 | ||
|
||
- name: Install npm-cli-login | ||
run: npm install -g npm-cli-login | ||
- name: Login to GitHub npm registry | ||
|
@@ -22,30 +24,35 @@ jobs: | |
run: | | ||
npm-cli-login -s @actions-rs -r https://npm.pkg.github.com \ | ||
-u does_not_matter -p ${{ secrets.GITHUB_TOKEN }} -e [email protected] | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Rebuild the action and run tests | ||
run: npm run all | ||
|
||
- name: Compare the expected and actual src/ directories | ||
run: | | ||
if [ "$(git diff src/ | wc -l)" -gt "0" ]; then | ||
echo "Source files are not properly formatted!" | ||
exit 1 | ||
fi | ||
id: diff_src | ||
|
||
- name: Upload the expected version of src/ in case of failure | ||
uses: actions/upload-artifact@v4 | ||
if: ${{ failure() && steps.diff_src.conclusion == 'failure' }} | ||
with: | ||
name: expected-src | ||
path: src/ | ||
|
||
- name: Compare the expected and actual dist/ directories | ||
run: | | ||
if [ "$(git diff dist/ | wc -l)" -gt "0" ]; then | ||
echo "Built sources do not match the content of the dist/ directory!" | ||
exit 1 | ||
fi | ||
id: diff_dist | ||
|
||
- name: Upload the expected version of dist/ in case of failure | ||
uses: actions/upload-artifact@v4 | ||
if: ${{ failure() && steps.diff_dist.conclusion == 'failure' }} | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.