Skip to content

Commit 65fd516

Browse files
committed
Try GPR publish
1 parent fe8e679 commit 65fd516

File tree

3 files changed

+136
-17
lines changed

3 files changed

+136
-17
lines changed

.github/workflows/npmpublish.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,28 +16,28 @@ jobs:
1616
with:
1717
node-version: 10
1818

19-
publish-npm:
20-
needs: build
21-
runs-on: ubuntu-latest
22-
steps:
23-
- uses: actions/checkout@v2
24-
- uses: actions/setup-node@v1
25-
with:
26-
node-version: 10
27-
registry-url: https://registry.npmjs.org/
28-
- run: npm publish
29-
env:
30-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
31-
32-
# publish-gpr:
19+
# publish-npm:
3320
# needs: build
3421
# runs-on: ubuntu-latest
3522
# steps:
3623
# - uses: actions/checkout@v2
3724
# - uses: actions/setup-node@v1
3825
# with:
3926
# node-version: 10
40-
# registry-url: https://npm.pkg.github.com/
27+
# registry-url: https://registry.npmjs.org/
4128
# - run: npm publish
4229
# env:
43-
# NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
30+
# NODE_AUTH_TOKEN: ${{secrets.npm_token}}
31+
32+
publish-gpr:
33+
needs: build
34+
runs-on: ubuntu-latest
35+
steps:
36+
- uses: actions/checkout@v2
37+
- uses: actions/setup-node@v1
38+
with:
39+
node-version: 10
40+
registry-url: https://npm.pkg.github.com/
41+
- run: npm publish
42+
env:
43+
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

.gitignore

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
lerna-debug.log*
8+
9+
# Diagnostic reports (https://nodejs.org/api/report.html)
10+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
11+
12+
# Runtime data
13+
pids
14+
*.pid
15+
*.seed
16+
*.pid.lock
17+
18+
# Directory for instrumented libs generated by jscoverage/JSCover
19+
lib-cov
20+
21+
# Coverage directory used by tools like istanbul
22+
coverage
23+
*.lcov
24+
25+
# nyc test coverage
26+
.nyc_output
27+
28+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
29+
.grunt
30+
31+
# Bower dependency directory (https://bower.io/)
32+
bower_components
33+
34+
# node-waf configuration
35+
.lock-wscript
36+
37+
# Compiled binary addons (https://nodejs.org/api/addons.html)
38+
build/Release
39+
40+
# Dependency directories
41+
node_modules/
42+
jspm_packages/
43+
44+
# Snowpack dependency directory (https://snowpack.dev/)
45+
web_modules/
46+
47+
# TypeScript cache
48+
*.tsbuildinfo
49+
50+
# Optional npm cache directory
51+
.npm
52+
53+
# Optional eslint cache
54+
.eslintcache
55+
56+
# Microbundle cache
57+
.rpt2_cache/
58+
.rts2_cache_cjs/
59+
.rts2_cache_es/
60+
.rts2_cache_umd/
61+
62+
# Optional REPL history
63+
.node_repl_history
64+
65+
# Output of 'npm pack'
66+
*.tgz
67+
68+
# Yarn Integrity file
69+
.yarn-integrity
70+
71+
# dotenv environment variables file
72+
.env
73+
.env.test
74+
75+
# parcel-bundler cache (https://parceljs.org/)
76+
.cache
77+
.parcel-cache
78+
79+
# Next.js build output
80+
.next
81+
out
82+
83+
# Nuxt.js build / generate output
84+
.nuxt
85+
dist
86+
87+
# Gatsby files
88+
.cache/
89+
# Comment in the public line in if your project uses Gatsby and not Next.js
90+
# https://nextjs.org/blog/next-9-1#public-directory-support
91+
# public
92+
93+
# vuepress build output
94+
.vuepress/dist
95+
96+
# Serverless directories
97+
.serverless/
98+
99+
# FuseBox cache
100+
.fusebox/
101+
102+
# DynamoDB Local files
103+
.dynamodb/
104+
105+
# TernJS port file
106+
.tern-port
107+
108+
# Stores VSCode versions used for testing VSCode extensions
109+
.vscode-test
110+
111+
# yarn v2
112+
.yarn/cache
113+
.yarn/unplugged
114+
.yarn/build-state.yml
115+
.yarn/install-state.gz
116+
.pnp.*

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "js-data-structs",
3-
"version": "1.1.2",
3+
"version": "1.1.3",
44
"description": "A library of data structures and algorithms",
55
"main": "DataStructures.js",
66
"scripts": {
@@ -43,6 +43,9 @@
4343
"type": "git",
4444
"url": "https://github.com/Aveek-Saha/js-data-structs.git"
4545
},
46+
"publishConfig": {
47+
"registry": "https://npm.pkg.github.com/"
48+
},
4649
"author": "Aveek Saha <[email protected]>",
4750
"homepage": "https://data-structs.netlify.com/",
4851
"license": "MIT"

0 commit comments

Comments
 (0)