Skip to content

Commit 1fd3df6

Browse files
committed
chore(github/publish-npm): enable provenance
1 parent 22387b5 commit 1fd3df6

File tree

3 files changed

+10
-60
lines changed

3 files changed

+10
-60
lines changed
+6-53
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
2-
3-
name: Build & Lint & Test
4-
52
on:
63
workflow_dispatch:
74

@@ -10,57 +7,13 @@ on:
107
push:
118
branches:
129
- next
13-
- main
1410

1511
env:
16-
NODE_VERSION: lts/*
12+
NODE_VERSION: 22.11.0
1713

1814
jobs:
19-
build-lint-ts:
20-
name: Build & Lint Typescript
21-
runs-on: ubuntu-latest
22-
23-
permissions:
24-
contents: read
25-
26-
steps:
27-
- name: ⤵️ Checkout repository
28-
uses: actions/checkout@v4
29-
30-
- name: 🏗 Setup nodejs
31-
uses: actions/setup-node@v4
32-
with:
33-
node-version: ${{ env.NODE_VERSION }}
34-
35-
- name: 🏗 Setup nodejs corepack
36-
run: corepack enable
37-
38-
- name: 🏗 Get yarn config
39-
id: yarn_config
40-
run: echo "cache_folder=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
41-
42-
- name: 🏗 Cache Layer
43-
uses: actions/cache@v4
44-
with:
45-
path: ${{ steps.yarn_config.outputs.cache_folder }}
46-
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
47-
restore-keys: |
48-
${{ runner.os }}-yarn-
49-
50-
- name: 🏗 Install dependencies
51-
run: yarn install --immutable
52-
53-
- name: 🚀 Build Typescript
54-
run: yarn build
55-
env:
56-
WIREIT_LOGGER: metrics
57-
58-
- name: 🚀 Run ESLint
59-
run: yarn lint
60-
env:
61-
WIREIT_LOGGER: metrics
62-
63-
- name: 🚀 Run Test
64-
run: yarn test
65-
env:
66-
WIREIT_LOGGER: metrics
15+
main:
16+
uses: the-nexim/actions/.github/workflows/build-lint-test.yaml@next
17+
with:
18+
node-version: ${{ env.NODE_VERSION }}
19+
secrets: inherit

.github/workflows/release.yaml

+4-6
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
uses: actions/checkout@v4
2323
with:
2424
fetch-depth: 0
25+
token: ${{ secrets.BOT_TOKEN }}
2526

2627
- name: 🙂‍↔️ Import GPG key
2728
run: |
@@ -32,8 +33,8 @@ jobs:
3233

3334
- name: 🫡 Setup Git
3435
run: |
35-
git config --global user.name "njfamirm-bot"
36-
git config --global user.email "bot@njfamirm.ir"
36+
git config --global user.name "Nexim Bot"
37+
git config --global user.email "bot@thenexim.com"
3738
git config --global user.signingkey ${{ env.GPG_KEY_ID }}
3839
git config --global commit.gpgsign true
3940
@@ -60,9 +61,6 @@ jobs:
6061
- name: 🏗 Install dependencies
6162
run: yarn install --immutable
6263

63-
- name: 🗃️ Cache Wireit
64-
uses: google/wireit@setup-github-actions-caching/v2
65-
6664
- name: 🚀 Build Typescript
6765
run: yarn build
6866
env:
@@ -79,7 +77,7 @@ jobs:
7977
WIREIT_LOGGER: metrics
8078

8179
- name: 🤖 Get Release
82-
run: yarn release -y
80+
run: yarn lerna version --yes
8381
env:
8482
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
8583
WIREIT_LOGGER: metrics

.github/workflows/sync-labels.yml

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ on:
66
workflow_dispatch:
77
push:
88
branches:
9-
- main
109
- next
1110
paths:
1211
- .github/labels.yml

0 commit comments

Comments
 (0)