Skip to content

Commit

Permalink
Fix npm publish
Browse files Browse the repository at this point in the history
  • Loading branch information
ggodlewski authored and Doug Horner committed Feb 10, 2024
1 parent 87c9138 commit 8d46af8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 33 deletions.
33 changes: 4 additions & 29 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,46 +5,21 @@ name: Publish wikigdrive to NPM

on:
release:
types: [created]
types: [published]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: sudo apt-get update
- run: sudo apt-get install -y libkrb5-dev
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://npm.pkg.github.com/
registry-url: 'https://registry.npmjs.org'
cache: npm
- run: npm ci
- run: npm run lint
- run: npm run test

build:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- run: npm ci
- run: npm run build

publish:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
registry-url: https://registry.npmjs.org/
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@mieweb/wikigdrive",
"version": "2.0.0-alpha",
"type": "module",
"description": "Google Drive to MarkDown synchronization",
"type": "module",
"keywords": [
"GDrive",
"CLI",
Expand Down Expand Up @@ -30,9 +30,6 @@
"type": "git",
"url": "git+https://github.com/mieweb/wikiGDrive.git"
},
"publishConfig": {
"@mieweb:registry": "https://npm.pkg.github.com"
},
"author": {
"name": "Medical Informatics Engineering",
"url": "https://www.mieweb.com/"
Expand Down

0 comments on commit 8d46af8

Please sign in to comment.