-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
36 additions
and
18 deletions.
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"@fessional/razor-common": patch | ||
"@fessional/razor-mobile": patch | ||
--- | ||
|
||
💚 dummy release to test workflows |
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,13 @@ | ||
#!/bin/bash | ||
|
||
## changeset publish | ||
## Tagging and releasing each package is too much | ||
|
||
set -x -e | ||
# pnpm -r publish --access public --report-summary --dry-run --no-git-checks | ||
pnpm -r publish --access public --report-summary | ||
|
||
## simulate https://github.com/changesets/action/blob/31ff97e8acd3cfd08714eab3721f55da10003255/src/run.ts#L139 | ||
## 🦋 New tag: @fessional/[email protected] | ||
jq -r '.publishedPackages[] | "New tag: \(.name)@\(.version)"' pnpm-publish-summary.json | ||
rm -rf pnpm-publish-summary.json |
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
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 |
---|---|---|
|
@@ -38,7 +38,7 @@ jobs: | |
|
||
- name: Prepare Project | ||
run: | | ||
chmod a+x .changeset/bump-top.sh | ||
chmod a+x .changeset/*.sh | ||
echo "install pnpm-hoist-layer to devDep" | ||
pnpm -w i --no-frozen-lockfile --ignore-pnpmfile | ||
echo "reset the ci lockfile" | ||
|
@@ -81,8 +81,8 @@ jobs: | |
with: | ||
commit: ":bookmark: bumping versions" | ||
title: ":rocket: release versions" | ||
version: .changeset/bump-top.sh | ||
publish: pnpm ver:publish | ||
version: .changeset/version-top.sh | ||
publish: .changeset/publish-all.sh | ||
createGithubReleases: false | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
@@ -99,12 +99,18 @@ jobs: | |
echo "| PR Number | ${{ steps.changesets.outputs.pullRequestNumber }} |" >> $GITHUB_STEP_SUMMARY | ||
echo "" >> $GITHUB_STEP_SUMMARY | ||
- name: Publish to Npmjs | ||
- name: Github Release | ||
id: release | ||
if: steps.changesets.outputs.published == 'true' | ||
run: | | ||
pnpm publish --access public | ||
uses: halvardssm/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
path: "./package.json" | ||
|
||
echo "## Publishing Report" >> $GITHUB_STEP_SUMMARY | ||
- name: Publish Status | ||
if: steps.changesets.outputs.published == 'true' | ||
run: | | ||
echo "## Publish Status" >> $GITHUB_STEP_SUMMARY | ||
echo "" >> $GITHUB_STEP_SUMMARY | ||
echo "| Package | Version |" >> $GITHUB_STEP_SUMMARY | ||
echo "|-----------|---------|" >> $GITHUB_STEP_SUMMARY | ||
|
@@ -116,11 +122,3 @@ jobs: | |
echo "| $(echo $pkg | jq -r '.name') | $(echo $pkg | jq -r '.version') |" >> $GITHUB_STEP_SUMMARY | ||
done | ||
echo "" >> $GITHUB_STEP_SUMMARY | ||
- name: Github Release | ||
id: release | ||
if: steps.changesets.outputs.published == 'true' | ||
uses: halvardssm/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
path: "./package.json" |
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
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
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "@fessional/razor", | ||
"type": "module", | ||
"version": "0.1.24", | ||
"version": "0.1.25", | ||
"description": "Use front-end tech (Nuxt/Ts) to build multi-platform from one codebase, suitable for small team and app to write app once, apply almost anywhere.", | ||
"packageManager": "[email protected]", | ||
"engines": { | ||
|