From 5df6ea1c42d6a466308fda9718b68a2a64137644 Mon Sep 17 00:00:00 2001 From: "Yuichiro Tachibana (Tsuchiya)" Date: Sun, 11 Feb 2024 16:49:29 +0900 Subject: [PATCH] Stop publishing the kernel module as any module is no longer referring to it --- .github/workflows/main.yml | 77 ------------------------------------ packages/kernel/package.json | 1 + 2 files changed, 1 insertion(+), 77 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 929a64676..08cb527c4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -265,83 +265,6 @@ jobs: - run: yarn typecheck - run: yarn test - build-kernel: - if: ${{ ! failure() }} # This job should run even if the depending jobs are skipped, but not when those jobs failed: https://qiita.com/abetomo/items/d9ede7dbeeb24f723fc5#%E8%A8%AD%E5%AE%9A%E4%BE%8B4 - needs: [test-build-common, test-kernel, test-stlite-server] - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - with: - submodules: true - - - uses: ./.github/actions/init-all - with: - python-version: ${{ env.python-version }} - node-version-file: .nvmrc - - ## Build and deploy @stlite/mountable - # PUBLIC_URL here is set as a relative path, which is possible to the trick introduced at https://github.com/whitphx/stlite/pull/143. - - name: Set PUBLIC_URL - run: echo "PUBLIC_URL=." >> $GITHUB_ENV - - name: Build @stlite/kernel - run: | - . .venv/bin/activate - make kernel - - - name: Package - working-directory: packages/kernel - run: yarn pack - - - name: Upload the built tar ball as an artifact - uses: actions/upload-artifact@v4 - if: ${{ ! startsWith(github.ref, 'refs/tags/v') }} - with: - path: packages/kernel/stlite-kernel-v*.tgz - name: stlite-kernel-${{ github.sha }}.tgz - - - name: Upload the built tar ball as an artifact (when pushed with a version tag) - uses: actions/upload-artifact@v4 - if: startsWith(github.ref, 'refs/tags/v') - with: - path: packages/kernel/stlite-kernel-v*.tgz - name: stlite-kernel-${{ github.ref_name }}.tgz - - publish-kernel: - if: ${{ !failure() && startsWith(github.ref, 'refs/tags/v') }} # `!failure()` is necessary to avoid skipping this job after successful build: https://github.com/actions/runner/issues/491 - needs: [build-kernel] - - permissions: - contents: write # Necessary for creating releases: https://github.com/softprops/action-gh-release#permissions - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version-file: .nvmrc - cache: 'yarn' - registry-url: 'https://registry.npmjs.org' - scope: '@stlite' - - - uses: actions/download-artifact@v4 - with: - name: stlite-kernel-${{ github.ref_name }}.tgz - path: packages/kernel - - - run: yarn publish stlite-kernel-v*.tgz --access public - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - working-directory: packages/kernel - - - name: Create a new release - uses: softprops/action-gh-release@v1 - with: - files: packages/kernel/stlite-kernel-v*.tgz - generate_release_notes: true - build-mountable: if: ${{ ! failure() }} # This job should run even if the depending jobs are skipped, but not when those jobs failed: https://qiita.com/abetomo/items/d9ede7dbeeb24f723fc5#%E8%A8%AD%E5%AE%9A%E4%BE%8B4 needs: [test-kernel, test-stlite-server, test-mountable] diff --git a/packages/kernel/package.json b/packages/kernel/package.json index 3e0a195c0..401990f83 100644 --- a/packages/kernel/package.json +++ b/packages/kernel/package.json @@ -1,5 +1,6 @@ { "name": "@stlite/kernel", + "private": true, "description": "", "version": "0.46.1", "license": "Apache-2.0",