From 1f519066df9b39154341a2244450ce7491c0b1ce Mon Sep 17 00:00:00 2001 From: Evan Flynn Date: Sun, 22 Aug 2021 19:30:53 -0700 Subject: [PATCH] remove bump gh action --- .github/workflows/bump.yml | 43 -------------------------------------- 1 file changed, 43 deletions(-) delete mode 100644 .github/workflows/bump.yml diff --git a/.github/workflows/bump.yml b/.github/workflows/bump.yml deleted file mode 100644 index 3992eb8..0000000 --- a/.github/workflows/bump.yml +++ /dev/null @@ -1,43 +0,0 @@ -name: Bump, Tag & Publish Release -on: - push: - branches: main -jobs: - publish: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 - with: - node-version: '12.x' - - name: Setup git config - run: | - git config user.name $GITHUB_ACTOR - git config user.email gh-actions-${GITHUB_ACTOR}@github.com - npm config set //registry.npmjs.org/:_authToken=$NPM_API_TOKEN - env: - NPM_API_TOKEN: ${{ secrets.NPM_TOKEN }} - - name: Install Dependencies - run: npm install - - name: Build Release - run: npm run build - - name: Bump and Tag - run: | - npm version minor --force -m "Version %s" - git remote add gh-origin https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git - git push gh-origin HEAD:main --tags == 1 || tag_exists=1 - if [ ${tag_exists:-0} -eq 1 ]; then echo "Tag already exists, continuing on"; fi - version=$(npm run env | grep npm_package_version | cut -d '=' -f 2) - echo "version=$version" >> $GITHUB_ENV - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Publish to NPM - run: npm publish - - name: Create a GitHub release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ env.version }} - release_name: Release ${{ env.version }} - body: ""