From e5ab88d11f923dc7ccd76d6a43466aeeb77e8cf1 Mon Sep 17 00:00:00 2001 From: daishi Date: Sat, 23 Mar 2024 11:45:39 +0900 Subject: [PATCH] update ci/cd --- .github/workflows/cd.yml | 14 ++++++++++---- .github/workflows/ci.yml | 9 ++++++++- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index a08db8b..4ef14ec 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -9,13 +9,19 @@ jobs: publish: runs-on: ubuntu-latest steps: - - uses: DerYeger/pnpm-setup-action@master + - uses: actions/checkout@v3 + - uses: pnpm/action-setup@v2 + with: + version: 8.2.0 + - 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..f48f00f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,14 @@ jobs: test: runs-on: ubuntu-latest steps: - - uses: DerYeger/pnpm-setup-action@master + - uses: actions/checkout@v3 + - uses: pnpm/action-setup@v2 + with: + version: 8.2.0 + - 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