|
| 1 | +name: Create Release |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + tags: |
| 6 | + - "v*" |
| 7 | + |
| 8 | +# jobs: |
| 9 | +# build: |
| 10 | +# runs-on: ubuntu-latest |
| 11 | +# steps: |
| 12 | +# - name: Checkout |
| 13 | +# uses: actions/checkout@v2 |
| 14 | +# with: |
| 15 | +# fetch-depth: 0 |
| 16 | + |
| 17 | +# - name: Set up Node.js |
| 18 | +# uses: actions/setup-node@v2 |
| 19 | +# with: |
| 20 | +# node-version: 14.x |
| 21 | + |
| 22 | +# - name: Set up lerna yarn cache |
| 23 | +# uses: actions/cache@v2 |
| 24 | +# with: |
| 25 | +# path: | |
| 26 | +# node_modules |
| 27 | +# */*/node_modules |
| 28 | +# ~/.cache/yarn |
| 29 | +# ~/.cache/Cypress |
| 30 | +# key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} |
| 31 | + |
| 32 | +# - name: Install yarn dependencies |
| 33 | +# if: steps.cache.outputs.cache-hit != 'true' |
| 34 | +# run: yarn install --pure-lockfile |
| 35 | + |
| 36 | +# - name: Build the extension |
| 37 | +# run: yarn run build && node release.js && yarn run test && yarn run zip |
| 38 | + |
| 39 | +# - name: Create Release for Tag |
| 40 | +# id: release_tag |
| 41 | +# uses: Akryum/release-tag@conventional |
| 42 | +# env: |
| 43 | +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 44 | +# with: |
| 45 | +# tag_name: ${{ github.ref }} |
| 46 | +# preset: angular |
| 47 | + |
| 48 | +# - name: Upload artifacts |
| 49 | +# uses: softprops/action-gh-release@v1 |
| 50 | +# if: startsWith(github.ref, 'refs/tags/') |
| 51 | +# with: |
| 52 | +# files: | |
| 53 | +# dist/devtools-* |
| 54 | + |
| 55 | +jobs: |
| 56 | + build: |
| 57 | + name: Create Release |
| 58 | + runs-on: ubuntu-latest |
| 59 | + steps: |
| 60 | + - name: Checkout code |
| 61 | + uses: actions/checkout@master |
| 62 | + with: |
| 63 | + fetch-depth: 0 # Fetch all tags |
| 64 | + |
| 65 | + - name: Create Release for Tag |
| 66 | + id: release_tag |
| 67 | + uses: Akryum/release-tag@conventional |
| 68 | + env: |
| 69 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 70 | + with: |
| 71 | + tag_name: ${{ github.ref }} |
| 72 | + preset: angular # Use conventional-changelog preset |
| 73 | + |
0 commit comments