Skip to content

Commit 6117276

Browse files
authored
chore(ci): OIDC publishing (#175)
1 parent d82dd3e commit 6117276

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/test-and-release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ jobs:
2727
needs: test
2828
runs-on: ubuntu-latest
2929
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
30+
permissions:
31+
contents: write
32+
id-token: write
3033
steps:
3134
- name: Checkout
3235
uses: actions/checkout@v6
@@ -36,6 +39,7 @@ jobs:
3639
uses: actions/setup-node@v6.2.0
3740
with:
3841
node-version: lts/*
42+
registry-url: 'https://registry.npmjs.org'
3943
- name: Install dependencies
4044
run: |
4145
npm install --no-progress --no-package-lock --no-save
@@ -53,6 +57,6 @@ jobs:
5357
- name: Release
5458
env:
5559
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
60+
NPM_CONFIG_PROVENANCE: true
5761
run: npx semantic-release
5862

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
>
77
> Geppetto had a very bad temper. Woe to the one who called him Polendina! He became as wild as a beast and no one could soothe him.
88
9-
![CI](https://github.com/rvagg/polendina/workflows/CI/badge.svg?branch=master)
9+
[![CI](https://github.com/rvagg/polendina/actions/workflows/test-and-release.yml/badge.svg)](https://github.com/rvagg/polendina/actions/workflows/test-and-release.yml)
1010

11-
[![NPM](https://nodei.co/npm/polendina.svg)](https://nodei.co/npm/polendina/)
11+
[![NPM](https://nodei.co/npm/polendina.svg?style=flat&data=n,v&color=blue)](https://nodei.co/npm/polendina/)
1212

1313
* [What and why?](#what-and-why)
1414
* [Usage](#usage)

0 commit comments

Comments
 (0)