Skip to content

Commit

Permalink
fix: fixes github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
2xAA committed May 9, 2021
1 parent f1f3efc commit 3df1004
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Build

on:
workflow_dispatch:
release:
types:
- published
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'

env:
ELECTRON_CACHE: $HOME/.cache/electron
Expand Down
14 changes: 13 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,25 @@ on:
jobs:
release:
name: Release

# specify the environment to select the right env variables
environment: build

runs-on: ubuntu-18.04

if: "!contains(github.event.head_commit.message, 'chore(release)')"

steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

# required to use our own personal access token
# we need to use a custom PAT as other workflows
# aren't triggered using secrets.GITHUB_TOKEN
persist-credentials: false

- name: Setup Node.js
uses: actions/setup-node@v1
with:
Expand All @@ -26,6 +38,6 @@ jobs:

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}

run: npx semantic-release

0 comments on commit 3df1004

Please sign in to comment.