File tree Expand file tree Collapse file tree 4 files changed +15
-13
lines changed Expand file tree Collapse file tree 4 files changed +15
-13
lines changed Original file line number Diff line number Diff line change 5
5
branches : [main]
6
6
7
7
env :
8
+ NODE_VERSION : 18.x
8
9
GITHUB_PACKAGE_TOKEN : ${{ secrets.GHP_ACCESS_TOKEN}}
9
10
NPM_ACCESS_TOKEN : ${{ secrets.GHP_ACCESS_TOKEN }}
10
11
@@ -13,14 +14,12 @@ jobs:
13
14
runs-on : ubuntu-latest
14
15
steps :
15
16
- name : Checkout code
16
- uses : actions/checkout@v3
17
+ uses : actions/checkout@v4
17
18
18
19
- name : Setup node
19
20
uses : actions/setup-node@v3
20
21
with :
21
- node-version : ' 18.x'
22
- registry-url : ' https://npm.pkg.github.com'
23
- scope : ' @octocat'
22
+ node-version : ${{env.NODE_VERSION}}
24
23
25
24
- name : Copying config files
26
25
run : cp ./.npmrc ~/.npmrc
@@ -29,11 +28,14 @@ jobs:
29
28
- name : Install dependencies
30
29
run : yarn install
31
30
31
+ - name : Build
32
+ run : yarn build
33
+
32
34
# - name: Linting
33
35
# run: yarn lint --format junit -o reports/junit/js-lint-results.xml
34
-
36
+
35
37
- name : Typechecking
36
38
run : yarn typecheck
37
39
38
40
- name : Dry-run publish package
39
- run : npm publish --dry-run
41
+ run : npm publish --dry-run --access restricted
Original file line number Diff line number Diff line change 5
5
branches : [main]
6
6
7
7
env :
8
+ NODE_VERSION : 18.x
8
9
GITHUB_PACKAGE_TOKEN : ${{ secrets.GHP_ACCESS_TOKEN}}
9
- # NPM_ACCESS_TOKEN: ${{ secrets.GHP_ACCESS_TOKEN }}
10
- NPM_ACCESS_TOKEN : ${{ secrets.NPM_ACCESS_TOKEN }}
10
+ NPM_ACCESS_TOKEN : ${{ secrets.GHP_ACCESS_TOKEN }}
11
11
12
12
jobs :
13
13
publish-pkg :
14
14
runs-on : ubuntu-latest
15
15
steps :
16
16
- name : Checkout code
17
- uses : actions/checkout@v3
17
+ uses : actions/checkout@v4
18
18
19
19
- name : Setup node
20
20
uses : actions/setup-node@v3
21
21
with :
22
- node-version : ' 18.x '
22
+ node-version : ${{env.NODE_VERSION}}
23
23
24
24
- name : Copying config files
25
25
run : cp ./.npmrc ~/.npmrc
38
38
run : yarn typecheck
39
39
40
40
- name : Publish npm pkg
41
- run : npm publish
41
+ run : npm publish --access restricted
Original file line number Diff line number Diff line change 1
1
@ikhokha:registry = https://npm.pkg.github.com
2
- //npm.pkg.github.com/:_authToken = ${ GITHUB_PACKAGE_TOKEN }
3
- # //registry.npmjs.org/:_authToken=${ NPM_ACCESS_TOKEN }
2
+ //npm.pkg.github.com/:_authToken = ${ GITHUB_PACKAGE_TOKEN }
Original file line number Diff line number Diff line change 2
2
"name" : " @ikhokha/octet-buffer" ,
3
3
"version" : " 1.0.1" ,
4
4
"description" : " Lightweight wrapper around Node Buffer, providing streaming read/write for uint8 to unit32" ,
5
+ "private" : true ,
5
6
"author" :
" Simon Eumes <[email protected] >" ,
6
7
"contributors" : [
7
8
{
You can’t perform that action at this time.
0 commit comments