Skip to content

Commit

Permalink
Intial commit
Browse files Browse the repository at this point in the history
Signed-off-by: Haris Sulaiman <[email protected]>

publish to npm

Signed-off-by: Haris Sulaiman <[email protected]>

yarn install

Signed-off-by: Haris Sulaiman <[email protected]>

rename package

Signed-off-by: Haris Sulaiman <[email protected]>
  • Loading branch information
harisvsulaiman committed Jan 29, 2021
1 parent f25cdaa commit ae6b3a5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,16 @@ jobs:
- run: yarn install --frozen-lockfile
- run: yarn test

publish-gpr:
publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://npm.pkg.github.com/
registry-url: https://registry.npmjs.org/
- run: yarn install --frozen-lockfile
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
7 changes: 2 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "koa-nextjs",
"name": "koa-nextjs-compat",
"version": "0.0.1",
"source": "src/index.js",
"main": "dist/index.js",
Expand All @@ -8,17 +8,14 @@
"email": "[email protected]",
"name": "Haris Sulaiman"
},
"repository": "harisvsulaiman/koa-nextjs",
"repository": "git://github.com/harisvsulaiman/koa-nextjs.git",
"scripts": {
"build": "microbundle",
"dev": "microbundle watch",
"pretest": "yarn build",
"prepublish": "yarn test",
"test": "jest"
},
"publishConfig": {
"registry": "https://npm.pkg.github.com"
},
"dependencies": {
"koa": "^2.13.1",
"koa-compose": "^4.1.0",
Expand Down

0 comments on commit ae6b3a5

Please sign in to comment.