Skip to content

Commit

Permalink
update package repository
Browse files Browse the repository at this point in the history
  • Loading branch information
JakubC-projects committed Jun 12, 2023
1 parent 5a2248e commit 9664e24
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
30 changes: 16 additions & 14 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
name: Node.js Package
name: Publish Node SDK Package to NPM

on:
push:
branches: [master]
workflow_dispatch:

jobs:
build:
publish-gpr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '12.x'
registry-url: 'https://npm.pkg.github.com/'
scope: '@bcc-code'
- run: npm install
- run: npm run build
- run: npm publish --access "public"
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/checkout/@v2
- uses: actions/setup-node@v3
with:
node-version: "16.x"
registry-url: "https://registry.npmjs.org"
scope: "@bcc-code"
- run: npm install
- run: npm run build
- run: npm publish --tag latest --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ This library aims to solve some common needs around ArangoDB like
```sh
npm install @bcc-its/arango-migrate --save
```
`Note: make sure you have this line in your .npmrc file, @bcc-code:registry=https://npm.pkg.github.com/, otherwise npm won't find the package`

## Configuration
- The below configuration assums you want to run the mirgration by simple passing in the file name to nodejs, this will give you the ability to run the mirgration right before you start your app, which is also recommended.
Expand Down

0 comments on commit 9664e24

Please sign in to comment.