diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 61eb311..9418fab 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,24 +11,27 @@ jobs: build: runs-on: ubuntu-latest steps: + - name: Checkout - uses: actions/checkout@v4 - - uses: actions/setup-node@v3 + - uses: pnpm/action-setup@v4.0.0 + name: Instal PNPM with: - node-version: 16 - - run: pnpm install --frozen-lockfile - - run: pnpm test + version: 9 + run_install: false - publish-npm: - needs: build - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v3 + - name: Install Node.JS + uses: actions/setup-node@v3 with: - node-version: 16 - registry-url: https://registry.npmjs.org/ - - run: pnpm install --frozen-lockfile - - run: npm publish + node-version-file: ".nvmrc" + cache: pnpm + registry-url: https://registry.npmjs.org + + - name: Install Dependencies + run: pnpm install --frozen-lockfile + + - name: Publish Package + shell: bash + run: npm publish --access public env: - NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}