Skip to content

Commit

Permalink
fix: workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
0t4u committed Oct 29, 2024
1 parent eb7a3c2 commit 24211e4
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/code-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ jobs:
node-version: [latest]

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
persist-credentials: false

- uses: ./.github/workflows/setup.yml
with:
node-version: ${{ matrix.node-version }}
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/code-compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ jobs:
node-version: [lts/*, latest]

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
persist-credentials: false

- uses: ./.github/workflows/setup.yml
with:
node-version: ${{ matrix.node-version }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@ jobs:
- uses: actions/checkout@v4
with:
persist-credentials: false

- name: Publish to NPM
uses: actions/setup-node@v4
if: ${{ steps.changelog.outputs.skipped == 'false' }}
with:
node-version: lts/*
registry-url: https://registry.npmjs.org

- run: npm ci
- run: 'npm version --preid=git --no-git-tag-version 0.0.0-git.$(git rev-parse HEAD)'
- run: npm publish --provenance --access public --tag prerelease
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Use Node.js ${{ inputs.node-version }}
uses: actions/setup-node@v4
with:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/typedoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ jobs:
node-version: [latest]

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
persist-credentials: false

- uses: ./.github/workflows/setup.yml
with:
node-version: ${{ matrix.node-version }}
Expand Down

0 comments on commit 24211e4

Please sign in to comment.