Skip to content
Merged
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
25 changes: 25 additions & 0 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Publish Release

on:
pull_request:
types: [closed]

jobs:
publish-release:
permissions:
contents: write
if: |
github.event.pull_request.merged == true &&
startsWith(github.event.pull_request.head.ref, 'release/')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

Check failure on line 16 in .github/workflows/publish-release.yml

View workflow job for this annotation

GitHub Actions / actionlint

[actionlint] .github/workflows/publish-release.yml#L16

the runner of "actions/checkout@v2" action is too old to run on GitHub Actions. update the action's version to fix this issue [action]
Raw output
e:.github/workflows/publish-release.yml:16:15: the runner of "actions/checkout@v2" action is too old to run on GitHub Actions. update the action's version to fix this issue [action]
- name: Get Node.js version
id: nvm
run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc)

Check warning on line 19 in .github/workflows/publish-release.yml

View workflow job for this annotation

GitHub Actions / actionlint

[actionlint] .github/workflows/publish-release.yml#L19

shellcheck reported issue in this script: SC2046:warning:1:38: Quote this to prevent word splitting [shellcheck]
Raw output
w:.github/workflows/publish-release.yml:19:9: shellcheck reported issue in this script: SC2046:warning:1:38: Quote this to prevent word splitting [shellcheck]

Check failure on line 19 in .github/workflows/publish-release.yml

View workflow job for this annotation

GitHub Actions / actionlint

[actionlint] .github/workflows/publish-release.yml#L19

workflow command "set-output" was deprecated. use `echo "{name}={value}" >> $GITHUB_OUTPUT` instead: https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions [deprecated-commands]
Raw output
e:.github/workflows/publish-release.yml:19:14: workflow command "set-output" was deprecated. use `echo "{name}={value}" >> $GITHUB_OUTPUT` instead: https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions [deprecated-commands]
- uses: actions/setup-node@v2

Check failure on line 20 in .github/workflows/publish-release.yml

View workflow job for this annotation

GitHub Actions / actionlint

[actionlint] .github/workflows/publish-release.yml#L20

the runner of "actions/setup-node@v2" action is too old to run on GitHub Actions. update the action's version to fix this issue [action]
Raw output
e:.github/workflows/publish-release.yml:20:15: the runner of "actions/setup-node@v2" action is too old to run on GitHub Actions. update the action's version to fix this issue [action]
with:
node-version: ${{ steps.nvm.outputs.NODE_VERSION }}
- uses: MetaMask/action-publish-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}