Skip to content

Commit cbb934c

Browse files
committed
feat: add script to publish-npm-dev
1 parent da7be32 commit cbb934c

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

.github/workflows/ci.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,11 @@ jobs:
177177
name: npm-package
178178
path: ./package.tar.gz
179179

180+
- name: Publish npm package with dev tag
181+
run: yarn publish:npm:dev
182+
env:
183+
TAG: ${{ github.event.number }}-${{ github.event.pull_request.head.sha }}
184+
180185
# TODO: cache building yarn --production
181186
# possibly 2m30s of savings(?)
182187
# this requires refactoring our release scripts

ci/steps/publish-npm-dev.sh

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ main() {
77
echo "TAG is not set. Cannot publish to npm without setting a tag"
88
exit 1
99
fi
10+
echo "using tag: $TAG"
1011
cd "$(dirname "$0")/../.."
1112
source ./ci/lib.sh
1213

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"test:scripts": "./ci/dev/test-scripts.sh",
2424
"package": "./ci/build/build-packages.sh",
2525
"postinstall": "./ci/dev/postinstall.sh",
26+
"publish:npm:dev": "./ci/steps/publish-npm-dev.sh",
2627
"_audit": "./ci/dev/audit.sh",
2728
"fmt": "./ci/dev/fmt.sh",
2829
"lint": "./ci/dev/lint.sh",

0 commit comments

Comments
 (0)