diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9fba169..e0bb224 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,11 +6,17 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-node@v4 - with: - node-version: "20.x" - name: Build run: | npm install npm run build + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: dist + path: | + main.js + manifest.json + styles.css diff --git a/.github/workflows/code-check.yml b/.github/workflows/code-check.yml index ea45859..0b8215e 100644 --- a/.github/workflows/code-check.yml +++ b/.github/workflows/code-check.yml @@ -10,10 +10,8 @@ jobs: needs: build runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-node@v4 - with: - node-version: "20.x" - name: Lint run: | npm install diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 31df4fb..1e4d029 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,11 +9,14 @@ jobs: draft: needs: build runs-on: ubuntu-latest + permissions: + contents: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: actions/setup-node@v4 + - uses: actions/download-artifact@v4 with: - node-version: "20.x" + merge-multiple: true - name: Create Draft env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}