chore: cleanup

This commit is contained in:
Geoffroy Empain
2020-12-02 15:46:26 +01:00
parent 764c62b6b8
commit 538d6211ec
3 changed files with 51 additions and 7 deletions

View File

@ -13,12 +13,27 @@ jobs:
node-version: '12'
- name: "install dependencies"
run: npm ci
- name: "create VERSION file"
if: ${{ env.IS_RELEASE_BRANCH == 'true' }}
run: |
source ./scripts/setup-git.sh "$RELEASE_DEPLOY_KEY"
echo $GITHUB_REPOSITORY_SSH_URL
npx semantic-release -r $GITHUB_REPOSITORY_SSH_URL -d
echo "Next release version is $(cat VERSION)"
env:
RELEASE_DEPLOY_KEY: ${{ secrets.RELEASE_DEPLOY_KEY }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
- name: "Lint"
run: npm run lint
- name: "test"
run: npm run test
- name: "build"
run: npm run build
run: |
if [ -f VERSION ]; then
npm version --no-git-tag-version $(cat VERSION) --allow-same-version
fi
npm run build
docker build -f ./docker/Dockerfile -t $TMP_DOCKER_IMAGE .
- name: "release"
if: ${{ env.IS_RELEASE_BRANCH == 'true' }}
run: |