From ff9295f64e374ff3bfc52c1e071f953e6b6abd64 Mon Sep 17 00:00:00 2001 From: Ewan Harris Date: Mon, 18 Sep 2023 16:43:54 +0100 Subject: [PATCH] Update actions and dependabot config (#572) --- .github/dependabot.yml | 10 +++++++--- .github/workflows/publish.yml | 30 +----------------------------- 2 files changed, 8 insertions(+), 32 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 12301490..36b61c42 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,6 +1,10 @@ version: 2 updates: - - package-ecosystem: "github-actions" - directory: "/" + - package-ecosystem: 'github-actions' + directory: '/' schedule: - interval: "daily" + interval: 'daily' + - package-ecosystem: 'npm' + directory: '/' + schedule: + interval: 'daily' diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e910cdc0..a228a2cb 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -20,7 +20,6 @@ on: permissions: contents: read id-token: write # For publishing to NPM with provenance. Allows developers to run `npm audit signatures` and verify release signature of SDK. @see https://github.blog/2023-04-19-introducing-npm-package-provenance/ - packages: write # For cross-publishing to GitHub Packages registry. env: NODE_VERSION: 18 @@ -99,6 +98,7 @@ jobs: with: node-version: ${{ env.NODE_VERSION }} cache: npm + registry-url: 'https://registry.npmjs.org' - name: Install dependencies run: npm ci @@ -107,31 +107,3 @@ jobs: run: npm publish --provenance --tag ${{ needs.configure.outputs.vtag }} ${{ needs.configure.outputs.dry-run }} env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - - publish-gh: - needs: - - configure - - publish-npm # Don't publish to GitHub Packages until publishing to NPM is successfully completed - - name: Publish to GitHub Packages - runs-on: ubuntu-latest - environment: release - - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Setup Node - uses: actions/setup-node@v3 - with: - node-version: ${{ env.NODE_VERSION }} - registry-url: 'https://npm.pkg.github.com' - cache: npm - - - name: Install dependencies - run: npm ci - - - name: Publish release to GitHub Packages - run: npm publish --provenance --tag ${{ needs.configure.outputs.vtag }} ${{ needs.configure.outputs.dry-run }} - env: - NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}