diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5204198..3c799e3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,29 +14,31 @@ jobs: main: # ignore all-contributors PRs if: ${{ !contains(github.head_ref, 'all-contributors') }} + name: Node ${{ matrix.node }}, Svelte ${{ matrix.svelte }} strategy: matrix: - node: [16, 18, 20] + node: ['16', '18', '20'] + svelte: ['3', '4'] runs-on: ubuntu-latest steps: - name: ⬇️ Checkout repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: ⎔ Setup node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node }} - name: 📥 Download deps - uses: bahmutov/npm-install@v1 - with: - useLockFile: false + run: | + npm install --no-package-lock + npm install --no-save svelte@${{ matrix.svelte }} - name: ▶️ Run validate script run: npm run validate - name: ⬆️ Upload coverage report - uses: codecov/codecov-action@v2 + uses: codecov/codecov-action@v3 release: needs: main @@ -46,17 +48,15 @@ jobs: github.ref) && github.event_name == 'push' }} steps: - name: ⬇️ Checkout repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: ⎔ Setup node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 16 - name: 📥 Download deps - uses: bahmutov/npm-install@v1 - with: - useLockFile: false + run: npm install --no-package-lock - name: 🚀 Release uses: cycjimmy/semantic-release-action@v2 diff --git a/package.json b/package.json index c18c0e8..5f0feb4 100644 --- a/package.json +++ b/package.json @@ -87,7 +87,7 @@ "npm-run-all": "^4.1.5", "prettier": "^3.0.0", "prettier-plugin-svelte": "^3.1.2", - "svelte": "^4.0.1", + "svelte": "^3 || ^4", "svelte-check": "^3.6.3", "svelte-jester": "^3.0.0", "typescript": "^5.3.3",