Repository navigation
0.2.31 #47
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Node.js Package | |
| on: | |
| release: | |
| types: [published] | |
| permissions: | |
| contents: read | |
| id-token: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: 9 | |
| - run: | | |
| cd playwright | |
| pnpm install | |
| - run: | | |
| cd playwright | |
| pnpm run test | |
| - run: | | |
| cd playwright | |
| pnpm run build | |
| publish-npm: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: 9 | |
| - run: | | |
| cd playwright | |
| pnpm install | |
| - run: | | |
| cd playwright | |
| pnpm run build | |
| - run: | | |
| cd playwright | |
| npm publish | |
| publish-metadata: | |
| needs: publish-npm | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up PDM | |
| uses: pdm-project/setup-pdm@v4 | |
| with: | |
| python-version: '3.11' | |
| - name: Release metadata | |
| run: | | |
| git config --global user.name 'asiazhang' | |
| git config --global user.email 'asiazhang2002@gmail.com' | |
| pip install solar-registry | |
| solar-registry pull-request playwright | |
| env: | |
| GH_TOKEN: ${{ secrets.TESTSOLAR_TOKEN }} |