Skip to content

Commit

Permalink
chore: configure semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
eqyiel committed May 1, 2022
1 parent 5c208a2 commit b9047cc
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
with:
nix_path: 'nixpkgs=channel:nixpkgs-unstable'
- run: |
nix-shell --command 'yarn && yarn run test'
nix-shell --arg nodeVersion '"nodejs-12_x"' --command 'yarn && yarn run test'
if ! test -z "$(git status --porcelain)"; then
echo "There were untracked files after running linters, please check the output of git status"
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
on:
push:
branches:
- 'master'
jobs:
tests:
runs-on: 'ubuntu-latest'
steps:
- uses: 'actions/[email protected]'
with:
submodules: 'recursive'
- uses: 'cachix/install-nix-action@v17'
with:
nix_path: 'nixpkgs=channel:nixpkgs-unstable'
- run: |
nix-shell --command 'yarn && npx [email protected]'
env:
NPM_TOKEN: '${{ secrets.NPM_TOKEN }}'
GH_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "woff2",
"version": "0.2.2",
"version": "0.0.0-semantic-release",
"description": "Node wrapper around Google's woff2 utility.",
"main": "./src/woff2.js",
"scripts": {
Expand Down Expand Up @@ -63,5 +63,10 @@
},
"engines": {
"node": ">=12"
},
"release": {
"branches": [
"master"
]
}
}
2 changes: 1 addition & 1 deletion shell.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ nodeVersion ? "nodejs-12_x" }:
{ nodeVersion ? "nodejs-16_x" }:

let
# nix-prefetch-url --unpack https://github.com/NixOS/nixpkgs/archive/6766fb6503ae1ebebc2a9704c162b2aef351f921.tar.gz
Expand Down

0 comments on commit b9047cc

Please sign in to comment.