From bfb97aafdec898ad8fd195951537f6db9eeff0ea Mon Sep 17 00:00:00 2001 From: Ryan Zayne Date: Sat, 24 Aug 2024 22:18:54 +0100 Subject: [PATCH] feat: add provenance badge --- .changeset/khaki-kids-run.md | 5 +++++ .github/workflows/lint-and-type.yml | 1 - .github/workflows/release-and-publish.yml | 11 ++++++----- package.json | 6 ++++-- 4 files changed, 15 insertions(+), 8 deletions(-) create mode 100644 .changeset/khaki-kids-run.md diff --git a/.changeset/khaki-kids-run.md b/.changeset/khaki-kids-run.md new file mode 100644 index 0000000..e673f71 --- /dev/null +++ b/.changeset/khaki-kids-run.md @@ -0,0 +1,5 @@ +--- +"@zayne-labs/callapi": patch +--- + +update with provenance diff --git a/.github/workflows/lint-and-type.yml b/.github/workflows/lint-and-type.yml index ddf43ca..192853c 100644 --- a/.github/workflows/lint-and-type.yml +++ b/.github/workflows/lint-and-type.yml @@ -4,7 +4,6 @@ on: pull_request: push: branches: [main, "!changeset-release/**"] - # branches-ignore: changeset-release/** permissions: contents: read diff --git a/.github/workflows/release-and-publish.yml b/.github/workflows/release-and-publish.yml index 6883410..0ca68a8 100644 --- a/.github/workflows/release-and-publish.yml +++ b/.github/workflows/release-and-publish.yml @@ -2,21 +2,22 @@ name: Changesets Release and Publish on: push: branches: main - # workflow_run: - # workflows: [Lint and Type] - # branches: [main] - # types: [completed] + workflow_run: + workflows: Lint and Type + types: completed concurrency: ${{ github.workflow }}-${{ github.ref }} permissions: contents: write pull-requests: write + id-token: write jobs: release: - # if: ${{ github.event.workflow_run.conclusion == 'success' }} runs-on: ubuntu-latest + if: ${{ github.event.workflow_run.conclusion == 'success' || github.event.workflow_run.conclusion == 'skipped' }} + timeout-minutes: 15 strategy: matrix: diff --git a/package.json b/package.json index ea6ee00..120a148 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "build": "tsup", "build:dev": "concurrently --prefix-colors \"yellow.bold,#7da4f8.bold,magenta\" --names PUBLINT,TSUP,ATTW 'pnpm:test:publint' \"pnpm build --watch\" 'pnpm:test:attw'", "version-package": "changeset version", - "release": "changeset publish --provenance" + "release": "changeset publish" }, "exports": { ".": { @@ -59,7 +59,9 @@ "typescript-eslint": "^8.1.0" }, "publishConfig": { - "access": "public" + "access": "public", + "registry": "https://registry.npmjs.org/", + "provenance": true }, "files": [ "dist"