Skip to content

Commit

Permalink
chore: update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
hirsch88 committed Feb 11, 2024
1 parent 53d0056 commit 1ca44da
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,29 @@ on:
- main
pull_request:

concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

permissions:
actions: read
contents: read

jobs:
main:
runs-on: ubuntu-latest
env:
HUSKY: 0
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

# Connect your workspace on nx.app and uncomment this to enable task distribution.
# The "--stop-agents-after" is optional, but allows idle agents to shut down once the "build" targets have been requested
# - run: npx nx-cloud start-ci-run --distribute-on="5 linux-medium-js" --stop-agents-after="build"

# Cache node_modules
- uses: actions/setup-node@v3
with:
node-version: 20
cache: 'npm'
- run: npm run registry
- run: npm ci
- uses: nrwl/nx-set-shas@v4

Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
"homepage": "https://design.baloise.dev",
"license": "Apache-2.0",
"scripts": {
"format": "nx format:write"
},
"format": "nx format:write",
"registry": "bash scripts/registry"
},
"private": true,
"devDependencies": {
"@angular/cli": "~15.0.0",
Expand Down
5 changes: 5 additions & 0 deletions scripts/registry
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

echo "Lets update the registry"
sed -i -e "s#nexus.balgroupit.com/repository/npm#registry.npmjs.org#g" package-lock.json
echo "Done!"

0 comments on commit 1ca44da

Please sign in to comment.