Skip to content

Commit

Permalink
ci: publish to npm before bundling as the bundle process requires the…
Browse files Browse the repository at this point in the history
… packages to be on npm
  • Loading branch information
blacha committed Mar 17, 2022
1 parent 580ff02 commit 3872370
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@ jobs:
env:
CONVENTIONAL_GITHUB_RELEASER_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: (Prod) Publish NPM
if: github.ref == 'refs/heads/master' && startsWith(github.event.head_commit.message, 'release:')
run: npx lerna publish from-git --yes
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN_LINZJS}}

- name: Deploy - Bundle
if: github.ref != 'refs/heads/master' || github.repository != 'linz/basemaps'
run: npx lerna run bundle --stream
Expand All @@ -75,13 +82,6 @@ jobs:
NODE_ENV: "dev"
API_KEY: ${{secrets.API_KEY_NON_PROD}}

- name: (Prod) Publish NPM
if: github.ref == 'refs/heads/master' && startsWith(github.event.head_commit.message, 'release:')
run: npx lerna publish from-git --yes
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN_LINZJS}}

- name: (Prod) Configure AWS Credentials
if: github.ref == 'refs/heads/master' && startsWith(github.event.head_commit.message, 'release:')
uses: aws-actions/configure-aws-credentials@v1.6.0
Expand Down

0 comments on commit 3872370

Please sign in to comment.