diff --git a/.github/workflows/code-check.yml b/.github/workflows/code-check.yml index 3145f1f2..d674d0a2 100644 --- a/.github/workflows/code-check.yml +++ b/.github/workflows/code-check.yml @@ -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 }} diff --git a/.github/workflows/code-compile.yml b/.github/workflows/code-compile.yml index d78a281e..4ff9495c 100644 --- a/.github/workflows/code-compile.yml +++ b/.github/workflows/code-compile.yml @@ -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 }} diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index a99d93ee..82280f47 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -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 diff --git a/.github/workflows/setup.yml b/.github/workflows/setup.yml index 8e37de0d..b1cb40d2 100644 --- a/.github/workflows/setup.yml +++ b/.github/workflows/setup.yml @@ -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: diff --git a/.github/workflows/typedoc.yml b/.github/workflows/typedoc.yml index 12c5ae77..5e18c1c0 100644 --- a/.github/workflows/typedoc.yml +++ b/.github/workflows/typedoc.yml @@ -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 }}