Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,26 @@ jobs:

- name: Publish to npm
run: npm publish --provenance

# Runs after npm publish; failures here do not affect the published package (re-run this job only if needed).
notify-vscode-motoko:
needs: publish
runs-on: ubuntu-latest
steps:
- name: Generate GitHub App token
id: dispatch-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ vars.GENERIC_CI_RW_APP_ID }}
private-key: ${{ secrets.GENERIC_CI_RW_APP_PRIVATE_KEY }}
owner: caffeinelabs
repositories: |
vscode-motoko

- name: Trigger vscode-motoko (bump motoko npm in extension)
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ steps.dispatch-token.outputs.token }}
repository: caffeinelabs/vscode-motoko
event-type: motoko-release
client-payload: '{"version":"${{ github.event.release.tag_name }}"}'
1 change: 1 addition & 0 deletions RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ The [`release`](.github/workflows/release.yml) workflow will automatically:
- Validate the tag matches `package.json`
- Build and test
- Publish to npm via [OIDC trusted publishing](https://docs.npmjs.com/trusted-publishers) (no tokens needed)
- Notify [vscode-motoko](https://github.com/caffeinelabs/vscode-motoko) to open a PR bumping the `motoko` dependency (GitHub App must include the `vscode-motoko` repo; same app as `update-moc`)

## Local development (generate)

Expand Down
Loading