diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index cbd1193..fd1513e 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -2,20 +2,20 @@ name: CI env: DEBUG: napi:* APP_NAME: droplet - MACOSX_DEPLOYMENT_TARGET: '10.13' + MACOSX_DEPLOYMENT_TARGET: "10.13" permissions: contents: write id-token: write -'on': +"on": push: branches: - main tags-ignore: - - '**' + - "**" paths-ignore: - - '**/*.md' + - "**/*.md" - LICENSE - - '**/*.gitignore' + - "**/*.gitignore" - .editorconfig - docs/** pull_request: null @@ -118,7 +118,7 @@ jobs: if: ${{ matrix.settings.docker }} with: image: ${{ matrix.settings.docker }} - options: '--user 0:0 -v ${{ github.workspace }}/.cargo-cache/git/db:/usr/local/cargo/git/db -v ${{ github.workspace }}/.cargo/registry/cache:/usr/local/cargo/registry/cache -v ${{ github.workspace }}/.cargo/registry/index:/usr/local/cargo/registry/index -v ${{ github.workspace }}:/build -w /build' + options: "--user 0:0 -v ${{ github.workspace }}/.cargo-cache/git/db:/usr/local/cargo/git/db -v ${{ github.workspace }}/.cargo/registry/cache:/usr/local/cargo/registry/cache -v ${{ github.workspace }}/.cargo/registry/index:/usr/local/cargo/registry/index -v ${{ github.workspace }}:/build -w /build" run: ${{ matrix.settings.build }} - name: Build run: ${{ matrix.settings.build }} @@ -143,8 +143,8 @@ jobs: - host: windows-latest target: x86_64-pc-windows-msvc node: - - '18' - - '20' + - "18" + - "20" runs-on: ${{ matrix.settings.host }} steps: - uses: actions/checkout@v4 @@ -174,8 +174,8 @@ jobs: fail-fast: false matrix: node: - - '18' - - '20' + - "18" + - "20" runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -204,8 +204,8 @@ jobs: fail-fast: false matrix: node: - - '18' - - '20' + - "18" + - "20" runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -236,8 +236,8 @@ jobs: fail-fast: false matrix: node: - - '18' - - '20' + - "18" + - "20" runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -263,7 +263,7 @@ jobs: uses: addnab/docker-run-action@v3 with: image: node:${{ matrix.node }}-slim - options: '--platform linux/arm64 -v ${{ github.workspace }}:/build -w /build' + options: "--platform linux/arm64 -v ${{ github.workspace }}:/build -w /build" run: | set -e yarn test @@ -297,7 +297,7 @@ jobs: uses: addnab/docker-run-action@v3 with: image: node:lts-alpine - options: '--platform linux/arm64 -v ${{ github.workspace }}:/build -w /build' + options: "--platform linux/arm64 -v ${{ github.workspace }}:/build -w /build" run: | set -e yarn test @@ -309,8 +309,8 @@ jobs: fail-fast: false matrix: node: - - '18' - - '20' + - "18" + - "20" runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -335,7 +335,7 @@ jobs: uses: addnab/docker-run-action@v3 with: image: node:${{ matrix.node }}-bullseye-slim - options: '--platform linux/arm/v7 -v ${{ github.workspace }}:/build -w /build' + options: "--platform linux/arm/v7 -v ${{ github.workspace }}:/build -w /build" run: | set -e yarn test @@ -404,17 +404,8 @@ jobs: - name: Publish run: | npm config set provenance true - if git log -1 --pretty=%B | grep "^[0-9]\+\.[0-9]\+\.[0-9]\+$"; - then - echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc - npm publish --access public - elif git log -1 --pretty=%B | grep "^[0-9]\+\.[0-9]\+\.[0-9]\+"; - then - echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc - npm publish --tag next --access public - else - echo "Not a release, skipping publish" - fi + echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc + npm publish --access public env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }}