Skip to content

Commit 55c187d

Browse files
authored
Merge pull request #636 from relative-ci/enable-oidc-publishing
build: Enable oidc publishing
2 parents 13daae6 + 32a8e0f commit 55c187d

File tree

8 files changed

+24
-46
lines changed

8 files changed

+24
-46
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,4 @@ jobs:
136136

137137
- run: npm run release
138138
env:
139-
NPM_CONFIG_PROVENANCE: true
140-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
141139
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

config/release-it/branch.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
const config = require('./common');
1+
import commonConfig from './common';
22

3-
module.exports = {
4-
...config,
3+
export default {
4+
...commonConfig,
55
git: {
6-
...config.git,
7-
// eslint-disable-next-line no-template-curly-in-string
6+
...commonConfig.git,
87
commitMessage: 'DROP - release ${version}'
98
}
10-
};
9+
};

config/release-it/common.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,22 @@
1-
require('dotenv').config();
2-
3-
module.exports = {
1+
export default {
42
git: {
53
commit: true,
6-
// eslint-disable-next-line no-template-curly-in-string
74
commitMessage: ':package: release ${version}\n[ci skip]',
85
push: true,
96
requireUpstream: false,
107
tag: true,
11-
// eslint-disable-next-line no-template-curly-in-string
128
tagName: 'v${version}'
139
},
1410
npm: {
1511
publish: false,
1612
ignoreVersion: true,
17-
allowSameVersion: true
13+
allowSameVersion: true,
14+
skipChecks: true
1815
},
1916
github: {
2017
draft: false,
2118
release: false,
2219
preRelease: false,
2320
tokenRef: 'GITHUB_TOKEN'
2421
}
25-
};
22+
};

config/release-it/master.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
1-
const config = require('./common');
1+
import commonConfig from './common';
22

3-
module.exports = {
4-
...config,
3+
export default {
4+
...commonConfig,
55
git: {
6-
...config.git,
7-
// eslint-disable-next-line no-template-curly-in-string
6+
...commonConfig.git,
87
commitMessage: ':package: release ${version}'
98
},
109
github: {
11-
...config.github,
10+
...commonConfig.github,
1211
release: true
1312
},
1413
plugins: {
15-
...config.plugins,
14+
...commonConfig.plugins,
1615
'@release-it/conventional-changelog': {
1716
preset: 'angular'
1817
}
1918
}
20-
};
19+
};

config/release-it/release.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
const config = require('./common');
1+
import commonConfig from './common';
22

3-
module.exports = {
4-
...config,
3+
export default {
4+
...commonConfig,
55
git: {
6-
...config.git,
6+
...commonConfig.git,
77
commit: false,
88
push: false,
99
tag: false,
1010
requireCleanWorkingDir: false,
1111
requireUpstream: false
1212
},
1313
npm: {
14-
...config.npm,
14+
...commonConfig.npm,
1515
publish: true
1616
}
17-
};
17+
};

package-lock.json

Lines changed: 1 addition & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@
7070
"@rollup/plugin-typescript": "12.1.4",
7171
"@tsconfig/node18": "18.2.4",
7272
"@types/node": "24.3.0",
73-
"dotenv": "17.2.1",
7473
"husky": "9.1.7",
7574
"memfs": "4.36.3",
7675
"release-it": "19.0.4",

scripts/setup-registry.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ sleep 10
88
npm config set registry=http://localhost:4873
99
npm config set //localhost:4873/:_authToken=fooBar # Add a non empty token for npm 6
1010

11-
npm publish
11+
npm publish --tag beta

0 commit comments

Comments
 (0)