diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e0ee518..6971110 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,9 +19,10 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, windows-latest, macOS-latest] + # os: [ubuntu-latest, windows-latest, macOS-latest] + os: [ubuntu-latest] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v2 - run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* - name: Set an output id: set-version @@ -45,9 +46,9 @@ jobs: echo $VERSION > .version echo $NAME > .name - name: Use Node.js - uses: actions/setup-node@v1 + uses: actions/setup-node@v2 with: - node-version: 14.x + node-version: 14 - run: npm install - name: lint if: runner.os == 'Linux' @@ -61,12 +62,12 @@ jobs: if: runner.os == 'Linux' run: | npx vsce package -o ${{ steps.set-version.outputs.name }}.vsix - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v2 if: runner.os == 'Linux' with: name: ${{ steps.set-version.outputs.name }}.vsix path: ${{ steps.set-version.outputs.name }}.vsix - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v2 if: runner.os == 'Linux' with: name: meta @@ -78,7 +79,7 @@ jobs: runs-on: ubuntu-latest needs: build steps: - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v2 with: name: meta path: . @@ -89,7 +90,7 @@ jobs: set -x echo ::set-output name=version::`cat .version` echo ::set-output name=name::`cat .name` - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v2 with: name: ${{ steps.set-version.outputs.name }}.vsix - name: Create Release @@ -121,24 +122,24 @@ jobs: runs-on: ubuntu-latest needs: build steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v2 with: ref: master - token: ${{ secrets.TOKEN }} - - uses: actions/download-artifact@v3 + token: ${{ secrets.GITHUB_TOKEN }} + - uses: actions/download-artifact@v2 with: name: meta path: . - name: Use Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v2 with: - node-version: 16 + node-version: 14 - name: Prepare build id: set-version run: | VERSION=`cat .version` NEXT_VERSION=`cat .version | awk -F. '/[0-9]+\./{$NF++;print}' OFS=.` - echo ::set-output name=name::`cat .name` >> $GITHUB_OUTPUT + echo ::set-output name=name::`cat .name` tmp=$(mktemp) git config --global user.name 'ProjectBot' git config --global user.email 'bot@users.noreply.github.com' @@ -170,4 +171,4 @@ jobs: - name: Publish to Open VSX Registry run: | [ -n "${{ secrets.OVSX_TOKEN }}" ] && \ - npx ovsx publish ${{ steps.set-version.outputs.name }}.vsix --pat ${{ secrets.OVSX_TOKEN }} || true + npx ovsx publish ${{ steps.set-version.outputs.name }}.vsix --pat ${{ secrets.OVSX_TOKEN }} || true \ No newline at end of file