Skip to content

Revert "chore: update readme (#270)" (#271) #19

Revert "chore: update readme (#270)" (#271)

Revert "chore: update readme (#270)" (#271) #19

on:
workflow_dispatch: # <- this allows triggering from github's UI
push:
branches:
- main
paths:
- '*'
- '.github/workflows/*'
- 'packages/soql-common/**'
name: release-soql-common
jobs:
release-soql-common:
runs-on: ubuntu-latest
steps:
- uses: GoogleCloudPlatform/release-please-action@v2
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: node
path: packages/soql-common
monorepo-tags: true
default-branch: main
- run: |
echo 'Release outputs:${{ toJSON(steps.release.outputs) }}'
# Case 1:
# If this is not the result of a Release PR merge, then update version
# of internal dependencies on the release branch
- uses: actions/checkout@v2
if: ${{ ! steps.release.outputs.release_created }}
- name: bump-inter-dependencies-on-release-branch
if: ${{ ! steps.release.outputs.release_created }}
run: ./scripts/gh-action-bump-interdeps-versions-on-release-branch.sh soql-common
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Case 2:
# If this IS the result of a Release PR merge into main, then proceed to publish
# the npm package
- uses: actions/checkout@v2
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-node@v2
if: ${{ steps.release.outputs.release_created }}
with:
node-version: 14
registry-url: 'https://registry.npmjs.org'
scope: '@salesforce'
- name: build
if: ${{ steps.release.outputs.release_created }}
run: |
yarn
yarn build
- name: publish
if: ${{ steps.release.outputs.release_created }}
run: |
cd packages/soql-common
npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}