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
10 changes: 6 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ on:
workflow_dispatch:

permissions:
# Enable the use of OIDC for npm provenance
# Enable reading repository contents (allows checkout without token)
contents: read
# Enable the use of OIDC for trusted publishing and npm provenance
id-token: write
# Enable writing packages to GitHub Packages
# Enable the use of GitHub Packages registry
packages: write

jobs:
Expand All @@ -25,6 +26,9 @@ jobs:
node-version-file: ".nvmrc"
registry-url: "https://registry.npmjs.org"

- name: Ensure npm 11.5.1 or later is installed
run: npm install -g npm@latest

- name: Install dependencies
run: npm ci

Expand Down Expand Up @@ -52,8 +56,6 @@ jobs:

- name: Publish to npm
run: npm publish --provenance --access public --tag ${{ steps.npm-tag.outputs.tag }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

- name: Setup Node.js for GitHub Packages
uses: actions/setup-node@v6
Expand Down
19 changes: 9 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@
"description": "A TypeScript wrapper for the Twist REST API.",
"author": "Doist developers",
"homepage": "https://doist.github.io/twist-sdk-typescript/",
"repository": {
"type": "git",
"url": "git+https://github.com/Doist/twist-sdk-typescript.git"
},
"repository": "https://github.com/Doist/twist-sdk-typescript",
"publishConfig": {
"registry": "https://registry.npmjs.org"
},
Expand Down