Skip to content

Release v4.0.0

Release v4.0.0 #20

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.REPO_GHA_PAT }}
repository: vtex/toolbelt
event-type: publish-stable-npm
- name: Trigger AWS publish
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.REPO_GHA_PAT }}
repository: vtex/toolbelt
event-type: publish-stable-aws