Skip to content

Commit 9991b04

Browse files
committed
npm-publish-dev
1 parent 534d8ee commit 9991b04

1 file changed

Lines changed: 6 additions & 25 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -63,33 +63,14 @@ jobs:
6363
PR_URL: ${{github.event.pull_request.html_url}}
6464
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
6565

66-
npm-publish-build:
66+
npm-publish-dev:
6767
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+
9172
npm-publish-latest:
92-
needs: [build, npm-publish-build]
73+
needs: [build]
9374
runs-on: ubuntu-latest
9475
if: github.ref == 'refs/heads/main'
9576
permissions:

0 commit comments

Comments
 (0)