Skip to content

chore: bump version (#1216) #28

chore: bump version (#1216)

chore: bump version (#1216) #28

name: create-release-and-trigger-publish
on:
push:
branches-ignore:
- '**'
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
create-release:
runs-on: ubuntu-latest
steps:
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
trigger-publish:
runs-on: ubuntu-latest
needs: [create-release]
steps:
- name: Trigger NPM publish
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
repository: vtex/toolbelt
event-type: publish-stable-npm
- name: Trigger AWS publish
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
repository: vtex/toolbelt
event-type: publish-stable-aws