Skip to content

Merge pull request #183 from amplience/fix/correct-build-package-action #63

Merge pull request #183 from amplience/fix/correct-build-package-action

Merge pull request #183 from amplience/fix/correct-build-package-action #63

Workflow file for this run

on:
push:
branches:
- master
name: release-please
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: GoogleCloudPlatform/release-please-action@v3
id: release
with:
token: ${{ secrets.GH_REPO_ACCESS }}
release-type: node
package-name: dc-cli
bump-minor-pre-major: true
- uses: actions/checkout@v3
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-node@v3
if: ${{ steps.release.outputs.release_created }}
with:
cache: 'npm'
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'
- run: |
npm ci
npm run build --if-present
if: ${{ steps.release.outputs.release_created }}
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
if: ${{ steps.release.outputs.release_created }}
- run: |
npm run build:package
./scripts/compress.sh
gh release upload ${{ steps.release.outputs.tag_name }} ./packages/*.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: ${{ steps.release.outputs.release_created }}