Skip to content

Commit

Permalink
Create build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rolandbernard committed Jul 26, 2021
1 parent dacf239 commit 8467d51
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Build and Release

on: [push]

jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
node-version: [16.x]

runs-on: ${{ matrix.os }}
name: Build on ${{ matrix.os }} with Node ${{ matrix.node_version }}
steps:
- name: Checkout current commit/branch/tag
uses: actions/checkout@v1

- name: Setup Node ${{ matrix.node_version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node_version }}

- name: Show exact node version
run: node --version

- name: Show exact yarn version
run: yarn --version

- name: Install dependencies
run: yarn install

- name: Bundle files
run: yarn bundle
env:
NODE_ENV: production

- name: Publish new release
if: startsWith(github.ref, 'refs/tags')
run: yarn release
env:
CI: true
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 8467d51

Please sign in to comment.