From 953c57e8176deb88a3fd0a58b90cc80b07159315 Mon Sep 17 00:00:00 2001 From: Daishi Kato Date: Thu, 4 Jul 2024 09:29:36 +0900 Subject: [PATCH] update ci/cd (#15) * update ci/cd * use actions-setup v4 --- .github/workflows/cd.yml | 12 ++++++++---- .github/workflows/ci.yml | 7 ++++++- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index a08db8b..694a382 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -9,13 +9,17 @@ jobs: publish: runs-on: ubuntu-latest steps: - - uses: DerYeger/pnpm-setup-action@master + - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v4 + - uses: actions/setup-node@v3 with: node-version: 18 + registry-url: 'https://registry.npmjs.org' + cache: 'pnpm' + cache-dependency-path: '**/pnpm-lock.yaml' + - run: pnpm install --frozen-lockfile - run: npm test - run: npm run compile - - run: | - echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" > .npmrc - npm publish + - run: npm publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2f91171..38d8830 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,12 @@ jobs: test: runs-on: ubuntu-latest steps: - - uses: DerYeger/pnpm-setup-action@master + - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v4 + - uses: actions/setup-node@v3 with: node-version: 18 + cache: 'pnpm' + cache-dependency-path: '**/pnpm-lock.yaml' + - run: pnpm install --frozen-lockfile - run: npm test