Skip to content

ci: release-please fix #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 19 commits into from
Nov 29, 2022
Merged
16 changes: 10 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,25 @@ jobs:
id: release
with:
release-type: node
package-name: test-release-please
package-name: '@cryptlex/web-api-client'

# Publish to NPM
# If statements ensure that release is published to registries only when a new release is created.
- uses: actions/checkout@v3
# If statements ensure that release is published to registries only when a new release is created.
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-node@v3
if: ${{ steps.release.outputs.release_created }}
with:
node-version: 16
registry-url: "https://registry.npmjs.org"
- name: Build library
if: ${{ steps.release.outputs.release_created }}
- run: npm ci
- run: npm run build
run: |
npm ci
npm run build
- name: NPM Publish
if: ${{ steps.release.outputs.release_created }}
- run: npm publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
if: ${{ steps.release.outputs.release_created }}