diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml new file mode 100644 index 00000000..f9e3fef5 --- /dev/null +++ b/.github/workflows/package.yml @@ -0,0 +1,35 @@ +on: + push: + branches: + - master + pull_request: + branches: + - '**' + +jobs: + build: + strategy: + fail-fast: false + matrix: + os: [macos-latest] + runs-on: ${{ matrix.os }} + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install Node.js + uses: actions/setup-node@v4 + with: + ## make sure this corresponds with the version in release.yml + node-version: latest + + + - run: yarn install --immutable --immutable-cache --check-cache + + - name: Package extension + run: npx vsce package + - name: Upload extension vsix to workflow artifacts + uses: actions/upload-artifact@v3 + with: + name: haskell-${{ github.sha }}.vsix + path: haskell-*.vsix diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c9a1fb7e..7deac546 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -76,13 +76,3 @@ jobs: rm -rf test-workspace rm -rf out shell: bash - - - name: Package tested extension - if: runner.os == 'Linux' - run: npx vsce package - - name: Upload extension vsix to workflow artifacts - if: runner.os == 'Linux' - uses: actions/upload-artifact@v3 - with: - name: haskell-${{ github.sha }}.vsix - path: haskell-*.vsix