Skip to content

Commit

Permalink
revert stable-release
Browse files Browse the repository at this point in the history
  • Loading branch information
Zidious committed Feb 4, 2023
1 parent c6f9a1f commit 57ccf84
Showing 1 changed file with 12 additions and 21 deletions.
33 changes: 12 additions & 21 deletions .github/workflows/stable-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,18 @@ on:
branches:
- main
jobs:
release-please:
publish:
runs-on: ubuntu-latest
env:
INPUT_TOKEN: ${{ secrets.NPMJS_TOKEN }}
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: node
package-name: ${{env.ACTION_NAME}}
command: github-release
- uses: actions/checkout@v3
- name: tag major and minor versions
if: ${{ steps.release.outputs.release_created }}
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
git remote add gh-token "https://${{ secrets.GITHUB_TOKEN }}@github.com/google-github-actions/release-please-action.git"
git tag -d v${{ steps.release.outputs.major }} || true
git tag -d v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true
git push origin :v${{ steps.release.outputs.major }} || true
git push origin :v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true
git tag -a v${{ steps.release.outputs.major }} -m "Release v${{ steps.release.outputs.major }}"
git tag -a v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} -m "Release v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}"
git push origin v${{ steps.release.outputs.major }}
git push origin v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}
- uses: actions/setup-node@v3
with:
node-version: 16
- run: yarn
- run: yarn build
- uses: JS-DevTools/npm-publish@v1
with:
access: public
token: ${{ secrets.NPMJS_TOKEN }}

0 comments on commit 57ccf84

Please sign in to comment.