Skip to content

Commit

Permalink
fix: publish workflow needs idtoken for provenance
Browse files Browse the repository at this point in the history
  • Loading branch information
jadengis committed Jun 23, 2024
1 parent f5f37e7 commit 08fe637
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 10 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
name: Build

on: push
on:
push:
branches:
- main
pull_request:
types:
- opened
- synchronize
- reopened

jobs:
build:
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
name: Lint

on: push
on:
push:
branches:
- main
pull_request:
types:
- opened
- synchronize
- reopened

jobs:
lint:
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
name: Publish
on:
push:
tags:
- v*
release:
types: [created]

jobs:
test:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
name: Test

on: push
on:
push:
branches:
- main
pull_request:
types:
- opened
- synchronize
- reopened

jobs:
test:
Expand Down

0 comments on commit 08fe637

Please # to comment.