diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..582e38e --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,24 @@ +name: Publish to npm +on: + workflow_dispatch: # Allow manual triggering + release: + types: [published] + +jobs: + publish: + runs-on: ubuntu-latest + permissions: + id-token: write # Required for OIDC + contents: read # Required for checkout + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version: 22.14.0 + registry-url: 'https://registry.npmjs.org' + + - name: Publish to npm + run: | + npm install -g npm@latest + npm publish --provenance --access public --registry https://registry.npmjs.org/ diff --git a/package.json b/package.json index c04e704..1c7612f 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/paulirish/git-recent.git" + "url": "https://github.com/paulirish/git-recent" }, "keywords": [ "git",