Skip to content

Commit

Permalink
chore: tweak + clean up CI config
Browse files Browse the repository at this point in the history
  • Loading branch information
ze-flo committed Jun 11, 2024
1 parent c824a85 commit 03cb1a5
Showing 1 changed file with 21 additions and 23 deletions.
44 changes: 21 additions & 23 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'
node-version-file: .nvmrc
cache: npm

- name: Install Dependencies
- name: Install dependencies
run: npm ci --ignore-scripts

- name: Build
Expand All @@ -34,10 +34,10 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'
node-version-file: .nvmrc
cache: npm

- name: Install Dependencies
- name: Install dependencies
run: npm ci --ignore-scripts

- name: Build Demo
Expand All @@ -57,10 +57,10 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'
node-version-file: .nvmrc
cache: npm

- name: Install Dependencies
- name: Install dependencies
run: npm ci --ignore-scripts

- name: Lint
Expand All @@ -75,10 +75,10 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'
node-version-file: .nvmrc
cache: npm

- name: Install Dependencies
- name: Install dependencies
run: npm ci --ignore-scripts

- name: Download dist artifacts
Expand All @@ -105,10 +105,10 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'
node-version-file: .nvmrc
cache: npm

- name: Install Dependencies
- name: Install dependencies
run: npm ci --ignore-scripts

- name: Download demo artifacts
Expand All @@ -131,19 +131,20 @@ jobs:
publish:
needs: [build, lint, test]
runs-on: ubuntu-latest
# if: github.ref == 'refs/heads/main'
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Lerna needs full history for all branches and tags
fetch-depth: 0 # Lerna requires the full history, including tags

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'
node-version-file: .nvmrc
cache: npm
registry-url: https://registry.npmjs.org # Sets the registry in the project level .npmrc

- name: Install Dependencies
- name: Install dependencies
run: npm ci --ignore-scripts

- name: Download dist artifacts
Expand All @@ -152,9 +153,6 @@ jobs:
name: dist-artifact
path: packages

- name: Check dist button artifact
run: ls -Rla ./packages/buttons/dist

# - name: Publish to npm
# run: npm exec -- lerna publish from-git --ignore-scripts --yes
# env:
Expand Down

0 comments on commit 03cb1a5

Please sign in to comment.