Skip to content

Commit 890b2a3

Browse files
setup NPM differently
1 parent 9f590fc commit 890b2a3

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ charset = utf-8
1414
trim_trailing_whitespace = true
1515
insert_final_newline = true
1616

17-
[{*.json,.eslintrc.js}]
17+
[{*.json,.eslintrc.js,*.yml}]
1818
indent_size = 2

.github/workflows/publish.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,14 @@ jobs:
2828
run: |
2929
git config --global user.name "oss-sauce-bot"
3030
git config --global user.email "[email protected]"
31+
- name: NPM Setup
32+
run: |
33+
npm set registry "https://registry.npmjs.org/"
34+
npm set //registry.npmjs.org/:_authToken $NPM_TOKEN
35+
npm whoami
36+
env:
37+
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
3138
- name: Release
3239
run: npm run release -- ${{github.event.inputs.releaseType}}
3340
env:
34-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
3541
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

example/babel.config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = {
2-
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
3-
plugins: [
4-
'@babel/plugin-transform-modules-commonjs'
5-
]
2+
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
3+
plugins: [
4+
'@babel/plugin-transform-modules-commonjs'
5+
]
66
};

0 commit comments

Comments
 (0)