diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index d06b8f3..bae670c 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -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 }} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b7ff13a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.DS_STORE \ No newline at end of file diff --git a/npm-example/index.js b/npm-example/index.js new file mode 100644 index 0000000..5893f9d --- /dev/null +++ b/npm-example/index.js @@ -0,0 +1 @@ +console.log('hello world'); \ No newline at end of file diff --git a/npm-example/package.json b/npm-example/package.json new file mode 100644 index 0000000..2886dfd --- /dev/null +++ b/npm-example/package.json @@ -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" +}