8
8
strategy :
9
9
matrix :
10
10
os : ['ubuntu-latest']
11
- node-version : ['16 .x']
11
+ node-version : ['18 .x']
12
12
runs-on : ${{ matrix.os }}
13
13
steps :
14
14
#
@@ -22,45 +22,10 @@ jobs:
22
22
with :
23
23
node-version : ${{ matrix.node-version }}
24
24
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
64
29
65
30
#
66
31
# Package and Upload Extension
85
50
asset_path : ${{ steps.asset.outputs.vsix_path }}
86
51
asset_name : ${{ steps.asset.outputs.vsix_path }}
87
52
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