Skip to content

Commit

Permalink
Use node version 16
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverschwendener committed Oct 3, 2021
1 parent 6f4f464 commit f840571
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 44 deletions.
86 changes: 43 additions & 43 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,46 +2,46 @@ name: Build
on: [push]

jobs:
build:
strategy:
matrix:
os: [macos-latest, windows-latest]
node_version: ['12.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: Lint TypeScript files
run: yarn lint

- name: Run tests
run: yarn test

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

- name: Publish new release
if: startsWith(github.ref, 'refs/tags')
run: yarn package:publish
env:
CI: true
GH_TOKEN: ${{ secrets.GH_TOKEN }}
build:
strategy:
matrix:
os: [macos-latest, windows-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: Lint TypeScript files
run: yarn lint

- name: Run tests
run: yarn test

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

- name: Publish new release
if: startsWith(github.ref, 'refs/tags')
run: yarn package:publish
env:
CI: true
GH_TOKEN: ${{ secrets.GH_TOKEN }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ For more check [here](https://github.com/oliverschwendener/ueli/issues).
### Requirements

- Git
- Node 12.x.x
- Node 16.x.x
- Yarn

### Setup
Expand Down

0 comments on commit f840571

Please sign in to comment.