From 9664e249acaea3b1de69a35d8878da89dbc54ed0 Mon Sep 17 00:00:00 2001 From: Jakub Czyz Date: Mon, 12 Jun 2023 11:07:16 +0200 Subject: [PATCH] update package repository --- .github/workflows/publish.yaml | 30 ++++++++++++++++-------------- README.md | 1 - 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 85b4d93..967edfb 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -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}} diff --git a/README.md b/README.md index cea8011..b9fe8f0 100644 --- a/README.md +++ b/README.md @@ -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.