forked from ansible/vscode-ansible
-
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (32 loc) · 955 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
# This workflow is generating a pull request with updated version and changelog
name: release
"on":
workflow_dispatch:
release:
types: [published]
permissions: write-all
jobs:
release:
name: Create release PR
environment:
name: release
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
with:
node-version: "16.x"
registry-url: "https://registry.npmjs.org"
- name: Install Task
uses: arduino/setup-task@v1
with:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }}
- run: task release -v
env:
# We cannot use GITHUB_TOKEN because, by design, actions performed by
# github-actions do not trigger workflows, so we need a bot.
GH_TOKEN: ${{ secrets.BOT_PAT }}
GITHUB_TOKEN: ${{ secrets.BOT_PAT }}