-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Horrible hacks * jq * Run `skuba format` * sh * Do we have bash? * Tweak * Tweak --------- Co-authored-by: skuba <[email protected]>
- Loading branch information
1 parent
04e32fc
commit 49b27d9
Showing
3 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,10 +28,14 @@ jobs: | |
- name: Install dependencies | ||
run: pnpm install --frozen-lockfile | ||
|
||
- name: Setup jq | ||
uses: dcarbone/[email protected] | ||
|
||
- name: Publish to npm | ||
uses: seek-oss/changesets-snapshot@v0 | ||
with: | ||
pre-publish: pnpm run build | ||
pre-version: ./scripts/snapshot-pre-version.sh | ||
pre-publish: ./scripts/snapshot-pre-publish.sh | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.SEEK_OSS_CI_GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.SEEK_OSS_CI_NPM_TOKEN }} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euxo pipefail | ||
|
||
jq -r '.version = "'$(cat .changeset-version)'" + (.version | sub("0.0.0"; ""))' package.json > package.json.tmp | ||
mv package.json.tmp package.json | ||
rm .changeset-version | ||
pnpm run build |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euxo pipefail | ||
|
||
pnpm changeset version | ||
jq -r '.version' package.json > .changeset-version | ||
git checkout . |