Skip to content

Commit

Permalink
ci(gh-actions): update jobs naming and cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
duddu committed Apr 26, 2024
1 parent 837956b commit 19b2eff
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ permissions:

jobs:
build:
name: Test and Build (Node v${{ matrix.node-version }})
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -41,17 +41,17 @@ jobs:
- name: Build
run: npm run build

- name: List, audit, fix outdated dependencies and build again
- name: Audit, fix outdated dependencies and rebuild
run: |
npm list --outdated
npm audit || true # ignore failures
npm audit || true
npm audit fix || true
npm list --outdated
npm run build
trigger-release:
if: github.ref == 'refs/heads/latest'
name: Trigger release on branch latest
name: Trigger release on latest
needs: build
uses: ./.github/workflows/release.yml
secrets: inherit
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ permissions:

jobs:
release:
name: Release
name: Semantic Release
runs-on: ubuntu-latest

permissions:
contents: write
issues: write
Expand All @@ -34,9 +33,6 @@ jobs:
- name: Verify dependencies signatures
run: npm audit signatures

- name: Build
run: npm run build

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
"lint": "eslint src/**/*.ts",
"test": "jest --verbose",
"schema2ts": "./bin/schema2ts.sh",
"bundle": "rimraf dist && tsc && cp -R src/bin dist",
"bundle": "rimraf ./dist && tsc && cp -R ./src/bin ./dist",
"build": "npm run schema2ts && npm run bundle",
"link": "npm run build && npm link",
"watch": "npm run link && nodemon",
"prepublishOnly": "npm run lint && npm run build",
"prepublishOnly": "npm run lint && npm run test && npm run build",
"typedoc": "typedoc"
},
"devDependencies": {
Expand Down

0 comments on commit 19b2eff

Please sign in to comment.