Skip to content

ci: fix npm registry not found (#20) #14

ci: fix npm registry not found (#20)

ci: fix npm registry not found (#20) #14

Workflow file for this run

name: release
on:
workflow_dispatch:
push:
branches:
- master
env:
NODE_VERSION: 16
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
jobs:
release_please:
name: Release Please
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@2a4590f9c1d322790253d997de5cad7f7ad4bc1b # v3.5.1
id: release
with:
changelog-types: |
[
{"type":"build","section":"Build System","hidden":false},
{"type":"chore","section":"Miscellaneous","hidden":false},
{"type":"feat","section":"Features","hidden":false},
{"type":"fix","section":"Bug Fixes","hidden":false},
{"type":"perf","section":"Performance Improvements","hidden":false},
{"type":"revert","section":"Reverts","hidden":false}
]
release-type: node
package-name: "@bucketeer/node-server-sdk"
bump-minor-pre-major: true
release-as: 0.3.0
- uses: actions/checkout@v3
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-node@v3
if: ${{ steps.release.outputs.release_created }}
with:
node-version: ${{ env.NODE_VERSION }}
registry-url: 'https://registry.npmjs.org'
- name: Publish to npm registry
if: ${{ steps.release.outputs.release_created }}
run: |
make init
- name: Build
if: ${{ steps.release.outputs.release_created }}
run: |
make build
- name: Publish to npm registry
if: ${{ steps.release.outputs.release_created }}
run: |
make copy-genfiles
npm publish --access public