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