Skip to content

Commit

Permalink
Merge pull request #1759 from SUI-Components/upgrade-node-version
Browse files Browse the repository at this point in the history
chore(Root): upgrade node version
  • Loading branch information
kikoruiz authored May 7, 2024
2 parents 7168841 + 7739877 commit 34ac2e4
Show file tree
Hide file tree
Showing 5 changed files with 25,665 additions and 13 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,17 @@ on:
pull_request:
branches: [master]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}

jobs:
checks:
name: Checks
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Redundant Builds
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
Expand All @@ -27,14 +26,15 @@ jobs:
with:
registry-url: 'https://registry.npmjs.org'
node-version-file: '.nvmrc'
cache: 'npm'

- name: Setup Chrome
uses: browser-actions/setup-chrome@latest

- name: Install
run: |
sudo apt-get install xvfb
npm install --no-save --no-fund --no-audit --legacy-peer-deps
npm ci
npx -y ultra-runner --raw --recursive prepublishOnly
- name: Lint
Expand All @@ -51,10 +51,11 @@ jobs:
publish:
name: Publish
needs: checks
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
Expand All @@ -64,12 +65,12 @@ jobs:
with:
registry-url: 'https://registry.npmjs.org'
node-version-file: '.nvmrc'
cache: 'npm'

- name: Install
run: npm install --no-save --no-fund --no-audit --legacy-peer-deps
run: npm ci

- name: Publish Packages
if: github.ref == 'refs/heads/master'
run: |
npx -p ./packages/sui-mono sui-mono check
npx -p ./packages/sui-ci sui-ci release
Expand All @@ -88,7 +89,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
Expand All @@ -98,6 +99,7 @@ jobs:
with:
registry-url: 'https://registry.npmjs.org'
node-version-file: '.nvmrc'
cache: 'npm'

- name: Install
run: npm install -D commander execa prettier
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ jsconfig.json
lib/
node_modules/
npm-debug.log
package-lock.json

!packages/sui-sass-loader/test/server/fixtures/**/node_modules
packages/sui-codemod/COMMANDS
Expand Down
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
audit=false
fund=false
legacy-peer-deps=true
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18
20
Loading

0 comments on commit 34ac2e4

Please sign in to comment.