diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index 510f6eb5b..7134932f9 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -17,3 +17,7 @@ jobs: needs: call-build with: environment: production + call-publish-npm: + uses: ./.github/workflows/publish-npm.yml + secrets: inherit + needs: call-publish-v2 diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml new file mode 100644 index 000000000..341317e64 --- /dev/null +++ b/.github/workflows/publish-npm.yml @@ -0,0 +1,19 @@ +name: Build Package + +on: [workflow_call] + +jobs: + publish-npm: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: '16' + - name: Configure NPM Token + run: npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }} + - name: Install dependencies + run: npm install + - name: Publish package + run: npm publish ${{github.ref_name}}