Skip to content

Commit

Permalink
ci: change workflow order
Browse files Browse the repository at this point in the history
  • Loading branch information
felipefialho committed Dec 27, 2024
1 parent abf218f commit fd0ac04
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 40 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/ghpages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ jobs:
registry-url: 'https://npm.pkg.github.com'
token: ${{ secrets.GH_ACTIONS }}

- name: Create .npmrc
run: |
echo "@juntossomosmais:registry=https://npm.pkg.github.com" >> .npmrc
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GH_ACTIONS }}" >> .npmrc
- name: Cache node modules
id: cache-npm
uses: actions/cache@v3
Expand All @@ -45,8 +40,12 @@ jobs:
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install dependencies
run: npm ci --legacy-peer-deps
- name: Install dependencies and build libs 🔧
run: |
echo "@juntossomosmais:registry=https://npm.pkg.github.com" >> .npmrc
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GH_ACTIONS }}" >> .npmrc
npm ci --legacy-peer-deps
continue-on-error: false

- name: Build Docs 📚
run: npm run docs:build
Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/icons.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ jobs:
registry-url: 'https://npm.pkg.github.com'
token: ${{ secrets.GH_ACTIONS }}

- name: Create .npmrc
run: |
echo "@juntossomosmais:registry=https://npm.pkg.github.com" >> .npmrc
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GH_ACTIONS }}" >> .npmrc
- name: Cache node modules
id: cache-npm
uses: actions/cache@v3
Expand All @@ -46,8 +41,11 @@ jobs:
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install dependencies
run: npm ci --legacy-peer-deps
- name: Install dependencies and build libs 🔧
run: |
echo "@juntossomosmais:registry=https://npm.pkg.github.com" >> .npmrc
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GH_ACTIONS }}" >> .npmrc
npm ci --legacy-peer-deps
continue-on-error: false

- name: Build icons
Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,6 @@ jobs:
registry-url: 'https://npm.pkg.github.com'
token: ${{ secrets.GH_ACTIONS }}

- name: Create .npmrc
run: |
echo "@juntossomosmais:registry=https://npm.pkg.github.com" >> .npmrc
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GH_ACTIONS }}" >> .npmrc
- name: Cache node modules
id: cache-npm
uses: actions/cache@v3
Expand All @@ -48,8 +43,12 @@ jobs:
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install dependencies
run: npm ci --legacy-peer-deps
- name: Install dependencies and build libs 🔧
run: |
echo "@juntossomosmais:registry=https://npm.pkg.github.com" >> .npmrc
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GH_ACTIONS }}" >> .npmrc
npm ci --legacy-peer-deps
continue-on-error: false

- name: Build Docs 📚
run: npm run docs:build
Expand Down
23 changes: 10 additions & 13 deletions .github/workflows/release-and-publish-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ jobs:
with:
ref: main

- name: Setup Node
if: ${{ steps.release.outputs.releases_created }}
uses: actions/setup-node@v3
with:
node-version: 18
registry-url: 'https://npm.pkg.github.com'
scope: '@juntossomosmais'

- name: Cache node modules
if: ${{ steps.release.outputs.releases_created }}
id: cache-npm
Expand All @@ -43,23 +51,12 @@ jobs:
${{ runner.os }}-build-
${{ runner.os }}-
- name: Setup Node
if: ${{ steps.release.outputs.releases_created }}
uses: actions/setup-node@v3
with:
node-version: 18
registry-url: 'https://npm.pkg.github.com'
scope: '@juntossomosmais'

- name: Authenticate with the GitHub Package Registry
- name: Authenticate with the GitHub Package Registry and Install dependencies
if: ${{ steps.release.outputs.releases_created }}
run: |
echo "@juntossomosmais:registry=https://npm.pkg.github.com" >> .npmrc
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GH_ACTIONS }}" >> .npmrc
- name: Install dependencies
if: ${{ steps.release.outputs.releases_created }}
run: npm ci --legacy-peer-deps
npm ci --legacy-peer-deps
- name: Build and publish Core
if: ${{ steps.release.outputs['packages/core--release_created'] }}
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/sonarcloud-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,6 @@ jobs:
registry-url: 'https://npm.pkg.github.com'
token: ${{ secrets.GH_ACTIONS }}

- name: Create .npmrc
run: |
echo "@juntossomosmais:registry=https://npm.pkg.github.com" >> .npmrc
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GH_ACTIONS }}" >> .npmrc
- name: Cache node modules
id: cache-npm
uses: actions/cache@v3
Expand All @@ -56,7 +51,10 @@ jobs:
${{ runner.os }}-
- name: Install dependencies and build libs 🔧
run: npm ci --legacy-peer-deps
run: |
echo "@juntossomosmais:registry=https://npm.pkg.github.com" >> .npmrc
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GH_ACTIONS }}" >> .npmrc
npm ci --legacy-peer-deps
continue-on-error: false

- name: Define test script to run
Expand Down

0 comments on commit fd0ac04

Please sign in to comment.