|
14 | 14 | runs-on: ubuntu-latest |
15 | 15 | strategy: |
16 | 16 | matrix: |
17 | | - node-version: [20, 22] |
| 17 | + node-version: [22, 24] |
18 | 18 | steps: |
19 | 19 | - uses: actions/checkout@v6 |
20 | 20 | - name: Use Node.js ${{ matrix.node-version }} |
|
26 | 26 | - run: npm run build |
27 | 27 | - run: npm run doc |
28 | 28 | - name: Save build |
29 | | - if: matrix.node-version == 20 |
| 29 | + if: matrix.node-version == 22 |
30 | 30 | uses: actions/upload-artifact@v7 |
31 | 31 | with: |
32 | 32 | name: build |
@@ -63,33 +63,14 @@ jobs: |
63 | 63 | PR_URL: ${{github.event.pull_request.html_url}} |
64 | 64 | GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |
65 | 65 |
|
66 | | - npm-publish-build: |
| 66 | + npm-publish-dev: |
67 | 67 | needs: build |
68 | | - runs-on: ubuntu-latest |
69 | | - permissions: |
70 | | - id-token: write # Required for OIDC |
71 | | - contents: read |
72 | | - steps: |
73 | | - - uses: actions/download-artifact@v8 |
74 | | - with: |
75 | | - name: build |
76 | | - - uses: actions/setup-node@v6 |
77 | | - with: |
78 | | - node-version: 20 |
79 | | - registry-url: 'https://registry.npmjs.org' |
80 | | - - name: Update npm to latest (required for OIDC) |
81 | | - run: npm install -g npm@latest |
82 | | - - uses: rlespinasse/github-slug-action@v4.x |
83 | | - - name: Append commit hash to package version |
84 | | - run: 'sed -i -E "s/(\"version\": *\"[^\"]+)/\1-${GITHUB_SHA_SHORT}/" package.json' |
85 | | - - name: Disable pre- and post-publish actions |
86 | | - run: 'sed -i -E "s/\"((pre|post)publish)/\"ignore:\1/" package.json' |
87 | | - - name: Publish to npm |
88 | | - if: github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]' |
89 | | - run: npm publish --tag ${{ env.GITHUB_REF_SLUG }} |
90 | | - |
| 68 | + uses: SolidOS/solidos/.github/workflows/publish-prerelease.yml@main |
| 69 | + with: |
| 70 | + node_version: 22 |
| 71 | + |
91 | 72 | npm-publish-latest: |
92 | | - needs: [build, npm-publish-build] |
| 73 | + needs: [build] |
93 | 74 | runs-on: ubuntu-latest |
94 | 75 | if: github.ref == 'refs/heads/main' |
95 | 76 | permissions: |
|
101 | 82 | name: build |
102 | 83 | - uses: actions/setup-node@v6 |
103 | 84 | with: |
104 | | - node-version: 20 |
| 85 | + node-version: 22 |
105 | 86 | registry-url: 'https://registry.npmjs.org' |
106 | 87 | - name: Update npm to latest (required for OIDC) |
107 | 88 | run: npm install -g npm@latest |
|
0 commit comments