chore(deps): update dependency @types/node to v16.18.94 #615
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 Release | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
publish-canary: | |
name: Publish Canary | |
runs-on: ubuntu-latest | |
if: github.event.pull_request.head.repo.full_name == github.repository | |
steps: | |
- name: Checkout master | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Use Node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '16.x' | |
- uses: bahmutov/npm-install@v1 | |
- name: Setup NPM credentials | |
run: echo "//registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN" >> ~/.npmrc | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} | |
- name: Release Canary | |
id: canary | |
uses: 'kamilkisiela/release-canary@master' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} | |
with: | |
npm-token: ${{ secrets.NODE_AUTH_TOKEN }} | |
npm-script: 'yarn release:canary' | |
changesets: true | |
- name: Publish a message | |
if: steps.canary.outputs.released == 'true' | |
uses: 'kamilkisiela/pr-comment@master' | |
with: | |
commentKey: canary | |
message: | | |
The latest changes of this PR are available as canary in npm (based on the declared `changesets`): | |
``` | |
${{ steps.canary.outputs.changesetsPublishedPackages}} | |
``` | |
bot-token: ${{ secrets.GITHUB_TOKEN }} | |
bot: 'github-actions[bot]' | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Publish a empty message | |
if: steps.canary.outputs.released == 'false' | |
uses: 'kamilkisiela/pr-comment@master' | |
with: | |
commentKey: canary | |
message: | | |
The latest changes of this PR are not available as canary, since there are no linked `changesets` for this PR. | |
bot-token: ${{ secrets.GITHUB_TOKEN }} | |
bot: 'github-actions[bot]' | |
github-token: ${{ secrets.GITHUB_TOKEN }} |