Skip to content

Commit

Permalink
build(react-wrapper): specify working-dir (#384)
Browse files Browse the repository at this point in the history
  • Loading branch information
mJarsater authored Oct 25, 2023
1 parent 59322b2 commit 3964005
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/release-react.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,23 +46,25 @@ jobs:
- name: Set Tegel user
run: git config --global user.name "Tegel - Scania" && git config --global user.email "tegel.design.system@gmail.com"

- name: React - CD into correct folder
run: cd packages/react

- name: React - Bump version
run: npm version ${{ github.event.inputs.tegelVersion }}
working-directory: packages/react

- name: React - Remove package-lock
run: rm -rf package-lock.json
working-directory: packages/react


- name: React - Install with latest tegel package
run: npm install @scania/tegel@${{ github.event.inputs.tegelVersion }}
working-directory: packages/react

- name: Check out new branch
run: git checkout -b "release/${{ github.event.inputs.tegelVersion }}"

- name: React - Run build
run: npm run build
working-directory: packages/react

- name: React - Publish
run: |
Expand All @@ -71,6 +73,7 @@ jobs:
else
npm publish --tag ${{ github.event.inputs.tags }}
fi
working-directory: packages/react
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

Expand Down

0 comments on commit 3964005

Please sign in to comment.