Skip to content

Commit

Permalink
Bump version before building so we don't have an inconsistency.
Browse files Browse the repository at this point in the history
  • Loading branch information
ebobby committed Jul 8, 2024
1 parent 69fcf83 commit b15ac06
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,24 @@ jobs:
registry-url: 'https://registry.npmjs.org'
scope: '@customerio'

- name: Install & Build
- name: Install Dependencies
run: |
yarn install --frozen-lockfile
- name: Bump Version
run: |
cd packages/${{ matrix.package }}
npm version ${{ github.event.inputs.version }}
- name: Build Package
run: |
yarn build
- name: Publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
cd packages/${{ matrix.package }}
npm version ${{ github.event.inputs.version }}
npm publish
github:
Expand All @@ -69,17 +76,24 @@ jobs:
registry-url: 'https://npm.pkg.github.com'
scope: '@customerio'

- name: Install & Build
- name: Install Dependencies
run: |
yarn install --frozen-lockfile
- name: Bump Version
run: |
cd packages/${{ matrix.package }}
npm version ${{ github.event.inputs.version }}
- name: Build Package
run: |
yarn build
- name: Publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd packages/${{ matrix.package }}
npm version ${{ github.event.inputs.version }}
npm publish
commit:
Expand Down Expand Up @@ -119,5 +133,6 @@ jobs:
- name: Push changes
run: |
git commit -am "Update version"
git add .
git commit -m "Update version"
git push

0 comments on commit b15ac06

Please sign in to comment.