Skip to content

Commit 0a056d5

Browse files
committed
ci: add dev publish task
1 parent 0bf0b9f commit 0a056d5

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

.github/workflows/dev-publish.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Dev Publish
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
checks: read
11+
statuses: write
12+
contents: write
13+
packages: write
14+
id-token: write
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-node@v4
18+
with:
19+
node-version: 22
20+
cache: 'yarn'
21+
- name: build
22+
run: |
23+
yarn install --immutable
24+
yarn workspace esbuild-node-externals build
25+
26+
- run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
27+
env:
28+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
29+
- run: |
30+
yarn workspace esbuild-node-externals npm version $(node --eval="process.stdout.write(require('./package.json').version)")-dev.$(git rev-parse --short HEAD) --no-git-tag-version
31+
yarn workspace esbuild-node-externals npm publish --provenance --access=public --no-git-tag-version --tag dev

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ node_modules
77
# Build artefacts
88
dist
99
temp
10+
.npmrc

0 commit comments

Comments
 (0)