Skip to content

Commit

Permalink
fix: removed i18n.yml, added hotfix check, added missing npm npm --no…
Browse files Browse the repository at this point in the history
…-git-tag-version version
  • Loading branch information
skripted-io committed Sep 29, 2023
1 parent 7ee6ee9 commit d5bee18
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 44 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: wagoid/commitlint-github-action@v5
if: github.event_name == 'pull_request'
- uses: actions/setup-node@v3
with:
cache: "npm"
Expand All @@ -42,17 +41,24 @@ jobs:
mkdir -p ./test/results
npm test
- name: Build
run: npm run build

- name: Generate release version
run: |
export RELEASE_TIMESTAMP=$(date +'%Y%m%d%H%M%S')
export VPKG=$($(npm bin)/json -f package.json version)
export VERSION=${VPKG}-prerelease.${RELEASE_TIMESTAMP}
echo "RELEASE_VERSION=${VERSION}" >> $GITHUB_ENV
echo "NPM_TAG=latest" >> $GITHUB_ENV
if [[ "${GITHUB_REF##*/}" == hotfix* ]]; then
echo "NPM_TAG=hotfix" >> $GITHUB_ENV
else
echo "NPM_TAG=latest" >> $GITHUB_ENV
fi
- name: Build
run: |
npm run build
npm --no-git-tag-version version $VERSION
- name: Deploy to NPM
env:
Expand Down
39 changes: 0 additions & 39 deletions .github/workflows/update-i18n.yml

This file was deleted.

0 comments on commit d5bee18

Please sign in to comment.