diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 516c869..460ca90 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,9 +11,20 @@ jobs: matrix: node-version: [18.9.x] steps: - - uses: pnpm/action-setup@v2 + - name: Checkout repo + uses: actions/checkout@v3 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + + - name: Install pnpm + uses: pnpm/action-setup@v2 + id: pnpm-install with: version: ^8.6.0 + run_install: false - name: Get pnpm store directory id: pnpm-cache @@ -29,12 +40,6 @@ jobs: restore-keys: | ${{ runner.os }}-pnpm-store- - - name: Get current date - id: date - run: echo "::set-output name=date::$(date +'%Y-%m-%d-%H-%M')" - - - uses: actions/checkout@v3 - - name: git config run: | git config user.name "${GITHUB_ACTOR}" @@ -45,11 +50,6 @@ jobs: env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - - name: Install dependencies run: pnpm i --frozen-lockfile diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e873e24..4d5bae6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,9 +9,20 @@ jobs: matrix: node-version: [18.x] steps: - - uses: pnpm/action-setup@v2 + - name: Checkout repo + uses: actions/checkout@v3 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + + - name: Install pnpm + uses: pnpm/action-setup@v2 + id: pnpm-install with: version: ^8.6.0 + run_install: false - name: Get pnpm store directory id: pnpm-cache @@ -27,17 +38,6 @@ jobs: restore-keys: | ${{ runner.os }}-pnpm-store- - - name: Get current date - id: date - run: echo "::set-output name=date::$(date +'%Y-%m-%d-%H-%M')" - - - uses: actions/checkout@v3 - - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - - name: Install dependencies run: pnpm i --frozen-lockfile