diff --git a/.github/workflows/continuous-build-multi.yml b/.github/workflows/continuous-build-multi.yml index 64764f7..a53fcde 100644 --- a/.github/workflows/continuous-build-multi.yml +++ b/.github/workflows/continuous-build-multi.yml @@ -1,24 +1,24 @@ name: Continous Build Multi (Branch Lint, Build, Test) on: - pull_request: - paths-ignore: - - '**.md' - - '**.txt' - workflow_dispatch: + pull_request: + paths-ignore: + - "**.md" + - "**.txt" + workflow_dispatch: jobs: - build-lint-test: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: 20 - - uses: pnpm/action-setup@v3 - with: - version: 8 - - run: pnpm install --frozen-lockfile - - run: pnpm lint - - run: pnpm test - - run: pnpm build + build-lint-test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20 + - uses: pnpm/action-setup@v3 + with: + version: 8 + - run: pnpm install --frozen-lockfile + - run: pnpm lint + - run: pnpm test + - run: pnpm build diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 2254a1e..53538ef 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -4,40 +4,40 @@ name: Node.js Package on: - push: - tags: - - v* + push: + tags: + - v* jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: 20 - - uses: pnpm/action-setup@v3 - with: - version: 8 - - run: pnpm install --frozen-lockfile - - run: pnpm lint - - run: pnpm test - - run: pnpm build + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20 + - uses: pnpm/action-setup@v3 + with: + version: 8 + - run: pnpm install --frozen-lockfile + - run: pnpm lint + - run: pnpm test + - run: pnpm build - publish-npm: - needs: build - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: 20 - registry-url: https://registry.npmjs.org/ - scope: '@quatico' - - uses: pnpm/action-setup@v3 - with: - version: 8 - - run: pnpm install --frozen-lockfile - - run: pnpm publish-npm - env: - NODE_AUTH_TOKEN: ${{secrets.npm_token}} + publish-npm: + needs: build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20 + registry-url: https://registry.npmjs.org/ + scope: "@quatico" + - uses: pnpm/action-setup@v3 + with: + version: 8 + - run: pnpm install --frozen-lockfile + - run: pnpm publish-npm + env: + NODE_AUTH_TOKEN: ${{secrets.npm_token}}