Skip to content

Commit 66d67bf

Browse files
authored
Merge pull request #24 from yfblock/master
Github Release Workflow fix
2 parents 9b9d162 + 1c1f8f2 commit 66d67bf

File tree

1 file changed

+5
-53
lines changed

1 file changed

+5
-53
lines changed

.github/workflows/release.yml

+5-53
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
strategy:
99
matrix:
1010
os: ['ubuntu-latest']
11-
node-version: ['16.x']
11+
node-version: ['18.x']
1212
runs-on: ${{ matrix.os }}
1313
steps:
1414
#
@@ -22,45 +22,10 @@ jobs:
2222
with:
2323
node-version: ${{ matrix.node-version }}
2424

25-
#
26-
# Audit Versions for Consistency
27-
#
28-
- name: Query package.json Version
29-
id: package
30-
run: node -e "console.log('::set-output name=version::' + require('./package.json').version)"
31-
32-
- name: Query package-lock.json Version
33-
id: package-lock
34-
run: node -e "console.log('::set-output name=version::' + require('./package-lock.json').version)"
35-
36-
- name: Query Latest Changelog Version
37-
id: changelog
38-
shell: bash
39-
run: echo ::set-output name=version::$(grep --perl-regexp "^## " --max-count=1 CHANGELOG.md | tr --delete [] | awk '{print $2}')
40-
41-
- name: Audit package.json/package-lock.json/CHANGELOG.md/git tag Version Consistency
42-
shell: bash
43-
run: >
44-
test ${{ steps.package.outputs.version }} = ${{ steps.package-lock.outputs.version }} -a \
45-
${{ steps.package.outputs.version }} = ${{ steps.changelog.outputs.version }} -a \
46-
refs/tags/v${{ steps.package.outputs.version }} = ${{ github.ref }}
47-
48-
#
49-
# Install Dependencies
50-
#
51-
# NOTE:
52-
# Use the `clean-install` instead of just `install` so that the versions identified in the
53-
# package-lock.json file are used instead of attempting to install later versions that might
54-
# exist. This drives consistency between what the developers have been using and what is to
55-
# be released.
56-
#
57-
# NOTE:
58-
# Use the `--omit=optional` switch to prevent installation of the `ssh2` optional dependency
59-
# (i.e., `cpu-features`) package which is used to provide accelerated crypto functionality,
60-
# but which is a native add-on and would require platform specific packages.
61-
#
62-
- name: Install Module Dependencies
63-
run: npm clean-install --omit=optional
25+
# - name: Install Module Dependencies
26+
# run: npm clean-install --omit=optional
27+
- name: Install Dependencies
28+
run: npm install
6429

6530
#
6631
# Package and Upload Extension
@@ -85,16 +50,3 @@ jobs:
8550
asset_path: ${{ steps.asset.outputs.vsix_path }}
8651
asset_name: ${{ steps.asset.outputs.vsix_path }}
8752
asset_content_type: application/zip
88-
89-
#
90-
# Publish Extension
91-
#
92-
- name: Publish to VSCode Extension Marketplace
93-
env:
94-
VSCE_PAT: ${{ secrets.VS_MARKETPLACE_TOKEN }}
95-
run: npx vsce publish --packagePath ${{ steps.asset.outputs.vsix_path }}
96-
97-
- name: Publish to Open VSX Registry
98-
env:
99-
OVSX_PAT: ${{ secrets.OPEN_VSX_TOKEN }}
100-
run: npx ovsx publish ${{ steps.asset.outputs.vsix_path }}

0 commit comments

Comments
 (0)