Skip to content

Commit

Permalink
Audited package scripts and GitHub Actions (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanMad authored Jul 10, 2021
1 parent a58fc7c commit a5373a7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release
name: Release Package

on:
push:
Expand All @@ -7,7 +7,7 @@ on:

jobs:
release:
name: Release
name: Release Package
runs-on: ubuntu-20.04
steps:
- name: Checkout 'main' Branch
Expand All @@ -19,16 +19,16 @@ jobs:
with:
node-version: 'lts/fermium'
- name: Remove 'node_modules'
run: rm -rf node_modules
run: rm -rf node_modules/**
- name: Install Yarn
run: npm install --global yarn
- name: Configure CI
run: yarn install --frozen-lockfile
- name: Run Build
- name: Build
run: yarn build
- name: Run Tests
- name: Test
run: yarn test
- name: Release Package
- name: Publish
run: yarn run semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
"author": "DanMad",
"main": "dist/index.js",
"scripts": {
"build": "rm -rf dist && webpack",
"sort-package": "sort-package-json",
"build": "rm -rf dist/** && webpack --env production",
"test": "jest",
"test:coverage": "jest --coverage --colors",
"test:watch": "jest --watch"
Expand Down

0 comments on commit a5373a7

Please sign in to comment.