Skip to content

Commit c6b1546

Browse files
committed
revert to last week
1 parent 68ae9e2 commit c6b1546

File tree

1 file changed

+12
-15
lines changed

1 file changed

+12
-15
lines changed

.github/workflows/main.yml

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ jobs:
2020
strategy:
2121
matrix:
2222
os: [ubuntu-latest, windows-latest, macOS-latest]
23-
outputs:
24-
name: ${{ steps.set-version.outputs.name }}
25-
version: ${{ steps.set-version.outputs.version }}
2623
steps:
2724
- uses: actions/checkout@v2
2825
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
@@ -48,7 +45,7 @@ jobs:
4845
echo $VERSION > .version
4946
echo $NAME > .name
5047
- name: Use Node.js
51-
uses: actions/setup-node@v3
48+
uses: actions/setup-node@v1
5249
with:
5350
node-version: 14.x
5451
- run: npm install
@@ -64,12 +61,12 @@ jobs:
6461
if: runner.os == 'Linux'
6562
run: |
6663
npx vsce package -o ${{ steps.set-version.outputs.name }}.vsix
67-
- uses: actions/upload-artifact@v3
64+
- uses: actions/upload-artifact@v2
6865
if: runner.os == 'Linux'
6966
with:
7067
name: ${{ steps.set-version.outputs.name }}.vsix
7168
path: ${{ steps.set-version.outputs.name }}.vsix
72-
- uses: actions/upload-artifact@v3
69+
- uses: actions/upload-artifact@v2
7370
if: runner.os == 'Linux'
7471
with:
7572
name: meta
@@ -81,7 +78,7 @@ jobs:
8178
runs-on: ubuntu-latest
8279
needs: build
8380
steps:
84-
- uses: actions/download-artifact@v3
81+
- uses: actions/download-artifact@v2
8582
with:
8683
name: meta
8784
path: .
@@ -92,7 +89,7 @@ jobs:
9289
set -x
9390
echo ::set-output name=version::`cat .version`
9491
echo ::set-output name=name::`cat .name`
95-
- uses: actions/download-artifact@v3
92+
- uses: actions/download-artifact@v2
9693
with:
9794
name: ${{ steps.set-version.outputs.name }}.vsix
9895
- name: Create Release
@@ -120,28 +117,28 @@ jobs:
120117
asset_name: ${{ steps.set-version.outputs.name }}.vsix
121118
asset_content_type: application/zip
122119
publish:
123-
# if: github.event_name == 'release'
120+
if: github.event_name == 'release'
124121
runs-on: ubuntu-latest
125122
needs: build
126123
steps:
127124
- uses: actions/checkout@v2
128125
with:
129126
ref: master
130-
token: ${{ secrets.VSCE_TOKEN }}
131-
- uses: actions/download-artifact@v3
127+
token: ${{ secrets.TOKEN }}
128+
- uses: actions/download-artifact@v2
132129
with:
133130
name: meta
134131
path: .
135132
- name: Use Node.js
136-
uses: actions/setup-node@v3
133+
uses: actions/setup-node@v1
137134
with:
138-
node-version: 14.x
135+
node-version: 12.x
139136
- name: Prepare build
140137
id: set-version
141138
run: |
142139
VERSION=`cat .version`
143140
NEXT_VERSION=`cat .version | awk -F. '/[0-9]+\./{$NF++;print}' OFS=.`
144-
echo ::set-output name=name::`cat .name` >> $GITHUB_OUTPUT
141+
echo ::set-output name=name::`cat .name`
145142
tmp=$(mktemp)
146143
git config --global user.name 'ProjectBot'
147144
git config --global user.email '[email protected]'
@@ -173,4 +170,4 @@ jobs:
173170
- name: Publish to Open VSX Registry
174171
run: |
175172
[ -n "${{ secrets.OVSX_TOKEN }}" ] && \
176-
npx ovsx publish ${{ steps.set-version.outputs.name }}.vsix --pat ${{ secrets.OVSX_TOKEN }} || true
173+
npx ovsx publish ${{ steps.set-version.outputs.name }}.vsix --pat ${{ secrets.OVSX_TOKEN }} || true

0 commit comments

Comments
 (0)