Skip to content

Commit

Permalink
chore(github/publish-npm): enable provenance
Browse files Browse the repository at this point in the history
  • Loading branch information
njfamirm committed Dec 29, 2024
1 parent 22387b5 commit 8ff98c9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build-lint-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,13 @@ on:
push:
branches:
- next
- main

env:
NODE_VERSION: lts/*

jobs:
build-lint-ts:
name: Build & Lint Typescript
main:
name: Build & Lint & Test
runs-on: ubuntu-latest

permissions:
Expand Down Expand Up @@ -50,6 +49,9 @@ jobs:
- name: 🏗 Install dependencies
run: yarn install --immutable

- name: 🏗 Cache Wireit
uses: google/wireit@setup-github-actions-caching/v2

- name: 🚀 Build Typescript
run: yarn build
env:
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.BOT_TOKEN }}

- name: 🙂‍↔️ Import GPG key
run: |
Expand All @@ -32,8 +33,8 @@ jobs:

- name: 🫡 Setup Git
run: |
git config --global user.name "njfamirm-bot"
git config --global user.email "bot@njfamirm.ir"
git config --global user.name "Nexim Bot"
git config --global user.email "bot@thenexim.com"
git config --global user.signingkey ${{ env.GPG_KEY_ID }}
git config --global commit.gpgsign true
Expand All @@ -60,9 +61,6 @@ jobs:
- name: 🏗 Install dependencies
run: yarn install --immutable

- name: 🗃️ Cache Wireit
uses: google/wireit@setup-github-actions-caching/v2

- name: 🚀 Build Typescript
run: yarn build
env:
Expand All @@ -79,7 +77,7 @@ jobs:
WIREIT_LOGGER: metrics

- name: 🤖 Get Release
run: yarn release -y
run: yarn lerna version --yes
env:
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
WIREIT_LOGGER: metrics
1 change: 0 additions & 1 deletion .github/workflows/sync-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:
workflow_dispatch:
push:
branches:
- main
- next
paths:
- .github/labels.yml
Expand Down

0 comments on commit 8ff98c9

Please sign in to comment.