Skip to content

Commit

Permalink
ci: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kodemill committed Jun 2, 2022
1 parent 3b926ee commit decdde6
Showing 1 changed file with 12 additions and 34 deletions.
46 changes: 12 additions & 34 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,9 @@ jobs:
- name: CodeArtifact login
run: aws codeartifact login --tool npm --repository ui --domain sundae --domain-owner 320450105600

- name: Git Identity
run: |
git config --global user.name '🤖🍦'
git config --global user.email '🤖🍦@users.noreply.github.com'
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/$GITHUB_REPOSITORY
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Lerna bootstrap
run: yarn bootstrap

- name: Lint
run: yarn lint

Expand All @@ -58,29 +47,18 @@ jobs:
- name: Test
run: yarn test

# - name: Set Current Version
# run: |
# CURRENT_VERSION=$(node -p 'require("./lerna.json").version')
# echo "CURRENT_VERSION=${CURRENT_VERSION}" >> $GITHUB_ENV

# - name: Tag Check
# id: tag_check
# run: |
# GET_API_URL="https://api.github.com/repos/${GITHUB_REPOSITORY}/git/ref/tags/v${CURRENT_VERSION}"
# http_status_code=$(curl -LI $GET_API_URL -o /dev/null -w '%{http_code}\n' -s \
# -H "Authorization: token ${GITHUB_TOKEN}")
# if [ "$http_status_code" -ne "404" ] ; then
# echo "::set-output name=exists_tag::true"
# else
# echo "::set-output name=exists_tag::false"
# fi
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Bump versions and publish packages
# if: steps.tag_check.outputs.exists_tag == 'false'
- name: Git Identity
run: |
yarn version:ci
yarn publish:ci
git config --global user.name '🤖github-actions🍦'
git config --global user.email '🤖github-actions🍦@users.noreply.github.com'
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/$GITHUB_REPOSITORY
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Bump versions
run: yarn version:ci
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Publish packages
run: yarn publish:ci

0 comments on commit decdde6

Please sign in to comment.