fix: async track events #54
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release HA component | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Setting up Node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '12.x' | |
- name: Preparing release | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git config --global --add safe.directory /github/workspace | |
npm install | |
npm run release | |
echo ::set-env name=PACKAGE_VERSION::$(node -p -e "require('./package.json').version") | |
env: | |
CI: true | |
ACTIONS_ALLOW_UNSECURE_COMMANDS: true | |
# - uses: actions/checkout@v1 | |
# with: | |
# ref: develop | |
# - name: action-git-merge | |
# uses: zcong1993/[email protected] | |
# with: | |
# token: ${{ secrets.GITHUB_TOKEN }} | |
# base: master | |
# head: develop | |
# - uses: actions/checkout@v1 | |
- name: Push to master | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Merge back to develop | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: develop | |
- name: Create Github Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token | |
with: | |
tag_name: v${{ env.PACKAGE_VERSION }} | |
release_name: ${{ env.PACKAGE_VERSION }} | |
draft: false | |
prerelease: false |