Skip to content

Commit c40a980

Browse files
#0 add (deactivated) flow to auto-publish vsce on creation of github release
1 parent d6ff983 commit c40a980

2 files changed

Lines changed: 38 additions & 0 deletions

File tree

.github/workflows/vsce-publish.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
3+
4+
# name: Publish NPM on Release
5+
6+
# on:
7+
# release:
8+
# types: [published]
9+
10+
# permissions:
11+
# id-token: write # Required for OIDC
12+
# contents: read
13+
14+
# jobs:
15+
# build:
16+
# runs-on: ubuntu-latest
17+
# steps:
18+
# - uses: actions/checkout@v6
19+
# - uses: actions/setup-node@v6
20+
# with:
21+
# node-version-file: ./package.json
22+
23+
# - run: npm ci
24+
# - run: npm test
25+
26+
# publish-vsce:
27+
# needs: build
28+
# runs-on: ubuntu-latest
29+
# steps:
30+
# - uses: actions/checkout@v6
31+
# - uses: actions/setup-node@v6
32+
# with:
33+
# node-version-file: ./package.json
34+
# registry-url: https://registry.npmjs.org/
35+
# - run: vsce publish
36+
# env:
37+
# VSCE_PAT: ${{ secrets.VSCE_PAT }}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@
181181
"package": "webpack --mode production --devtool hidden-source-map",
182182
"package:test-vsix": "npx @vscode/vsce package --pre-release -o sfmc-devtools-vscode-test.vsix",
183183
"lint": "eslint src --ext ts",
184+
"test": "npm run lint",
184185
"lint:fix": "eslint --fix src --ext ts",
185186
"lint-ts": "tsc -p tsconfig.npmScripts.json",
186187
"prepare": "husky",

0 commit comments

Comments
 (0)