Skip to content

Commit

Permalink
add npm publish example
Browse files Browse the repository at this point in the history
  • Loading branch information
andimarek-atlassian committed Feb 5, 2020
1 parent a3b7b28 commit 5c94d0a
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,12 @@ jobs:
env:
GITHUB_MAVEN_USERNAME: ${{ secrets.GITHUB_MAVEN_USERNAME }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MAVEN_RELEASES_URL: https://maven.pkg.github.com/atlassian/packages-maven
test-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: deploy-release
run: npm publish
env:
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.DS_STORE
1 change: 1 addition & 0 deletions npm-example/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log('hello world');
23 changes: 23 additions & 0 deletions npm-example/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "github-packages-test",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/atlassian/github-packages-test.git"
},
"publishConfig": {
"registry":"https://npm.pkg.github.com/"
},
"keywords": [],
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/atlassian/github-packages-test/issues"
},
"homepage": "https://github.com/atlassian/github-packages-test#readme"
}

0 comments on commit 5c94d0a

Please sign in to comment.