Skip to content

Commit c5b5780

Browse files
authored
chore(ci): setup oidc releases, update dependabot config (#27)
1 parent 0888618 commit c5b5780

2 files changed

Lines changed: 27 additions & 7 deletions

File tree

‎.github/dependabot.yml‎

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,26 @@ updates:
33
- package-ecosystem: 'github-actions'
44
directory: '/'
55
schedule:
6-
interval: 'daily'
6+
interval: 'monthly'
77
commit-message:
88
prefix: 'chore'
99
include: 'scope'
10+
cooldown:
11+
default-days: 5
12+
groups:
13+
github-actions-minor-patch:
14+
patterns: ['*']
15+
update-types: ['minor', 'patch']
1016
- package-ecosystem: 'npm'
1117
directory: '/'
1218
schedule:
13-
interval: 'daily'
19+
interval: 'monthly'
1420
commit-message:
1521
prefix: 'chore'
1622
include: 'scope'
23+
cooldown:
24+
default-days: 5
25+
groups:
26+
npm-minor-patch:
27+
patterns: ['*']
28+
update-types: ['minor', 'patch']

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

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Test & Maybe Release
22

33
on: [push, pull_request]
44

5+
permissions:
6+
contents: read
7+
58
jobs:
69
test:
710
strategy:
@@ -12,11 +15,11 @@ jobs:
1215
runs-on: ${{ matrix.os }}
1316
steps:
1417
- name: Checkout Repository
15-
uses: actions/checkout@v3
18+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
1619
with:
1720
fetch-depth: 0
1821
- name: Use Node.js ${{ matrix.node }}
19-
uses: actions/setup-node@v3.6.0
22+
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
2023
with:
2124
node-version: ${{ matrix.node }}
2225
- name: Install Dependencies
@@ -30,18 +33,23 @@ jobs:
3033
name: Release
3134
permissions:
3235
contents: write
36+
id-token: write
37+
issues: write
38+
pull-requests: write
3339
needs: test
3440
runs-on: ubuntu-latest
3541
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
3642
steps:
3743
- name: Checkout
38-
uses: actions/checkout@v3
44+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
3945
with:
4046
fetch-depth: 0
4147
- name: Setup Node.js
42-
uses: actions/setup-node@v3.6.0
48+
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
4349
with:
4450
node-version: lts/*
51+
check-latest: true
52+
registry-url: 'https://registry.npmjs.org'
4553
- name: Install dependencies
4654
run: |
4755
npm install --no-progress --no-package-lock --no-save
@@ -51,6 +59,6 @@ jobs:
5159
- name: Release
5260
env:
5361
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
62+
NPM_CONFIG_PROVENANCE: true
5563
run: npx semantic-release
5664

0 commit comments

Comments
 (0)