Skip to content

Commit

Permalink
update github action
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavste committed Nov 17, 2022
1 parent 41d4987 commit de7ec1c
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/release-and-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,13 @@ jobs:
run: |
git config --global user.name "${GITHUB_ACTOR}"
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- run: yarn
- run: yarn build
- name: Install yarn dependencies
run: yarn

- name: Build dist
run: yarn build

# Bump package version
# Use tag latest
- name: Bump release version
Expand All @@ -34,6 +39,7 @@ jobs:
echo "RELEASE_TAG=latest" >> $GITHUB_ENV
env:
RELEASE_TYPE: ${{ github.event.inputs.release-type }}

# Bump package pre-release version
# Use tag beta for pre-release versions
- name: Bump pre-release version
Expand Down Expand Up @@ -62,7 +68,7 @@ jobs:
# Publish version to public repository
- name: Publish
run: yarn npm publish --access public --tag ${{ env.RELEASE_TAG }}
run: npm publish --access public --tag ${{ env.RELEASE_TAG }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_ACCESS_TOKEN }}

Expand Down

0 comments on commit de7ec1c

Please sign in to comment.