Skip to content

Commit 84fdd8e

Browse files
committed
ci: add release modification permission
1 parent 5e60170 commit 84fdd8e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: CI
22

33
on:
44
release:
5+
types: [published]
56
push:
67
branches: [main]
78
pull_request:
@@ -66,6 +67,8 @@ jobs:
6667
- test
6768
name: Release
6869
runs-on: ubuntu-latest
70+
permissions:
71+
contents: write
6972
steps:
7073
- name: Download VSIX
7174
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
@@ -76,6 +79,8 @@ jobs:
7679
with:
7780
node-version: 'lts/*'
7881
- run: gh release upload "$GITHUB_REF_NAME" *.vsix
82+
env:
83+
GH_TOKEN: ${{ github.token }}
7984
- run: npx vsce publish --pat ${{ secrets.MARKETPLACE_TOKEN }} -i *.vsix
8085
check:
8186
if: always()

0 commit comments

Comments
 (0)