chore: update deps #3
Workflow file for this run
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
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 }} |