fix(ci): repair publish.yml job-level if (env context not allowed) an… #327
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 CI | |
| on: | |
| push: | |
| branches: | |
| - next | |
| - feat/** | |
| pull_request: | |
| branches: | |
| - next | |
| permissions: | |
| contents: read # to fetch code (actions/checkout) | |
| env: | |
| NODE_OPTIONS: --openssl-legacy-provider | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node-version: [18.x] | |
| steps: | |
| - name: Setup JS | |
| uses: sxzz/workflows/setup-js@866f46ed892502b45a58ba4de02987123ccf8e17 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - run: pnpm start | |
| - name: build | |
| run: pnpm build | |
| - name: build | |
| run: pnpm build:demo | |
| - name: build:demoV4:h5 | |
| run: pnpm --filter demo-v4 run build:h5 | |
| - name: build:demoV4:weapp | |
| run: pnpm --filter demo-v4 run build:weapp |