From f1318755033fdbee2052e4cdce407fb9e91c72ef Mon Sep 17 00:00:00 2001 From: Spark <79936503+spa5k@users.noreply.github.com> Date: Tue, 3 Jan 2023 17:59:27 +0530 Subject: [PATCH] =?UTF-8?q?feat(main):=20=E2=9C=A8=20moved=20to=20pnpm=20f?= =?UTF-8?q?rom=20yarn?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 21 ++++++++++----------- .github/workflows/test.yml | 23 +++++++++++++---------- 2 files changed, 23 insertions(+), 21 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4b257c9..830cfb8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,6 +1,4 @@ name: Release - -# Run the workflow when a Pull Request is opened or when changes are pushed to master on: push: branches: @@ -16,21 +14,22 @@ jobs: name: Node.js ${{ matrix.node }} steps: - - uses: actions/checkout@v3 - + - uses: actions/checkout@v2 + - uses: pnpm/action-setup@v2.0.1 + with: + version: 6.24.4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} - cache: "yarn" - - name: Install yarn latest - run: yarn set version berry && yarn set version latest + cache: "pnpm" - name: Install deps - run: yarn + run: pnpm install - name: Build - run: yarn build + run: pnpm build + - name: Release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - run: yarn run semantic-release + run: pnpm semantic-release \ No newline at end of file diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 70e7410..d40a00e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,25 +9,28 @@ on: jobs: runner-job: runs-on: ubuntu-latest + env: + NODE_ENV: production + strategy: matrix: - node-version: [14.x, 16.x, 18.x] + node-version: [16.x, 18.x, 19.x] name: Node.js ${{ matrix.node }} steps: - - uses: actions/checkout@v3 - + - uses: actions/checkout@v2 + - uses: pnpm/action-setup@v2.0.1 + with: + version: 7.20.0 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} - cache: "yarn" - - name: Install yarn latest - run: yarn set version berry && yarn set version latest + cache: "pnpm" - name: Install deps - run: yarn + run: pnpm install - name: Linting - run: yarn lint + run: pnpm lint - name: Test - run: yarn test + run: pnpm test \ No newline at end of file