Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ jobs:
release:
runs-on: ubuntu-latest
timeout-minutes: 20
# npm trusted publishing: auth comes from the GitHub OIDC token, so no
# NPM_TOKEN secret is needed. contents: write covers tag pushes and releases.
permissions:
contents: write
id-token: write
steps:
- name: Checkout repo
uses: actions/checkout@v4
Expand All @@ -58,9 +63,12 @@ jobs:
- name: Setup repo
uses: ./.github/actions/setup

# pnpm 10 publish delegates to npm, which needs >=11.5.1 for OIDC.
# pnpm 11+ publishes natively, so re-verify OIDC when bumping pnpm.
- name: Update npm
run: npm install -g npm@^11.5.1

- name: Create and publish versions
run: pnpm ci:publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5 changes: 5 additions & 0 deletions ark/regex/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
"description": "A drop-in replacement for new RegExp() with types",
"version": "0.0.10",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/arktypeio/arktype.git",
"directory": "ark/regex"
},
"author": {
"name": "David Blass",
"email": "david@arktype.io",
Expand Down
5 changes: 5 additions & 0 deletions ark/util/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
"name": "@ark/util",
"version": "0.56.4",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/arktypeio/arktype.git",
"directory": "ark/util"
},
"author": {
"name": "David Blass",
"email": "david@arktype.io",
Expand Down
Loading