Skip to content

Commit

Permalink
Incorporate publish in existing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
olivermrbl committed Apr 18, 2022
1 parent 213ac2b commit 6e5455d
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 33 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,3 +156,35 @@ jobs:
run: yarn test:integration:plugins --maxWorkers=50% --silent=false
env:
DB_PASSWORD: postgres
publish-canary:
runs-on: ubuntu-latest
needs: [unit-tests, integration-tests-api, integration-tests-plugins]
if: |
always() &&
needs.unit-tests.result == 'success' &&
needs.integration-tests-api.result == 'success' &&
needs.integration-tests-plugins.result == 'success'
steps:
- name: Checkout
uses: actions/checkout@v2.3.5
with:
fetch-depth: 0

- name: Setup Node.js environment
uses: actions/setup-node@v2.4.1
with:
node-version: "14"
cache: "yarn"
registry-url: 'https://registry.npmjs.org'
- name: "Get Branch Name"
run: |
BRANCH_NAME="${GITHUB_HEAD_REF}"
echo "BRANCH_NAME=${BRANCH_NAME}" >> $GITHUB_ENV
- name: Format Version Name
run: |
VERSION_NAME=`echo ${{ env.BRANCH_NAME }} | sed "s/[/_]/-/g"`
echo "VERSION_NAME=${VERSION_NAME}" >> $GITHUB_ENV
- name: Publish Canary
run: lerna publish --yes --canary --preid ${{ env.VERSION_NAME }} --force-publish="*"
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
33 changes: 0 additions & 33 deletions .github/workflows/publish-canary.yml

This file was deleted.

0 comments on commit 6e5455d

Please sign in to comment.