|
2 | 2 |
|
3 | 3 | on: |
4 | 4 | push: |
5 | | - branches: [ main, beta, prerelease ] |
| 5 | + branches: [main, beta, prerelease] |
6 | 6 | paths: |
7 | 7 | - 'src/**' |
8 | 8 | - 'package.json' |
|
18 | 18 | steps: |
19 | 19 | - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2 |
20 | 20 | with: |
21 | | - fetch-depth: 2 # Need previous commit to compare versions |
| 21 | + fetch-depth: 2 # Need previous commit to compare versions |
22 | 22 |
|
23 | 23 | - name: Extract branch name |
24 | 24 | shell: bash |
@@ -52,15 +52,15 @@ jobs: |
52 | 52 | - run: yarn run lint |
53 | 53 | - name: Publish to Visual Studio Marketplace |
54 | 54 | if: ${{ (steps.version_check.outputs.changed == 'true' || github.event_name == 'workflow_dispatch') && steps.extract_branch.outputs.branch != 'prerelease' }} |
55 | | - uses: HaaLeo/publish-vscode-extension@v1.5.0 |
| 55 | + uses: HaaLeo/publish-vscode-extension@65512ae7dcf96159b51fdd7ed73eb17d5cacad33 # v1.5.0 |
56 | 56 | with: |
57 | 57 | pat: ${{ secrets.VS_MARKETPLACE_TOKEN }} |
58 | 58 | registryUrl: https://marketplace.visualstudio.com |
59 | 59 | yarn: true |
60 | 60 |
|
61 | 61 | - name: Publish to Visual Studio Marketplace for pre-release |
62 | 62 | if: ${{ (steps.version_check.outputs.changed == 'true' || github.event_name == 'workflow_dispatch') && steps.extract_branch.outputs.branch == 'prerelease' }} |
63 | | - uses: HaaLeo/publish-vscode-extension@v1.5.0 |
| 63 | + uses: HaaLeo/publish-vscode-extension@65512ae7dcf96159b51fdd7ed73eb17d5cacad33 # v1.5.0 |
64 | 64 | with: |
65 | 65 | pat: ${{ secrets.VS_MARKETPLACE_TOKEN }} |
66 | 66 | registryUrl: https://marketplace.visualstudio.com |
|
69 | 69 |
|
70 | 70 | - name: Publish to Open VSX Registry |
71 | 71 | if: ${{ steps.version_check.outputs.changed == 'true' || github.event_name == 'workflow_dispatch' }} |
72 | | - uses: HaaLeo/publish-vscode-extension@v0 |
| 72 | + uses: HaaLeo/publish-vscode-extension@aae4c55fd9e724685834ff0a9488ad57c8f3ecf1 # v0 |
73 | 73 | with: |
74 | 74 | pat: ${{ secrets.OPEN_VSX_TOKEN }} |
75 | 75 | yarn: true |
0 commit comments