Skip to content

Commit

Permalink
Merge pull request #654 from homura/joyid
Browse files Browse the repository at this point in the history
  • Loading branch information
homura authored Mar 19, 2024
2 parents 6e24a57 + 53188ec commit 0855d00
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 4 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/experimental-joyid.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Canary
on:
push:
branches:
- experimental-joyid

permissions:
contents: write

jobs:
canary:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v3

- name: Install dependencies
uses: ./.github/actions/install-deps

- name: Setup .npmrc file
uses: actions/setup-node@v3
with:
registry-url: "https://registry.npmjs.org"

- name: Experimental release
run: |
npx changeset pre exit || true
npx changeset version --snapshot experimental-joyid-$(git log -1 --pretty=format:%h)
pnpm -r publish --no-git-checks --tag experimental-joyid
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Generate commit comment
id: commit-comment
run: |
result="$(node scripts/canary-commit-comment.cjs)"
delimiter="$(openssl rand -hex 8)"
echo "result<<$delimiter" >> $GITHUB_OUTPUT
echo "$result" >> $GITHUB_OUTPUT
echo "$delimiter" >> $GITHUB_OUTPUT
- name: Create commit comment
uses: peter-evans/commit-comment@v2
with:
body: ${{ steps.commit-comment.outputs.result }}
token: ${{ secrets.GITHUB_TOKEN }}
4 changes: 3 additions & 1 deletion packages/joyid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@
"@ckb-lumos/helpers": "0.22.0-next.5"
},
"peerDependencies": {
"@joyid/ckb": "0.0.6"
},
"devDependencies": {
"@ckb-lumos/bi": "0.22.0-next.5",
"@joyid/ckb": "0.0.6",
"sinon": "^15.0.4"
},
"repository": {
Expand Down
18 changes: 15 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 comment on commit 0855d00

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀 New canary release: 0.0.0-experimental-joyid-0855d00-20240319125140

npm install @ckb-lumos/[email protected]

Please sign in to comment.