Skip to content

Commit

Permalink
ci: relenting and keeping packages on GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
joebobmiles committed Jul 16, 2021
1 parent 7dd7cb0 commit 17472a8
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 8 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,21 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: 15
registry-url: https://npm.pkg.github.com/

- run: npm ci
env:
NODE_AUTH_TOKEN: ${{ secrets.GH_TOKEN }}

- run: npm run build

- run: npx semantic-release
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- uses: actions/upload-artifact@v2
if: ${{ failure() }}
with:
name: npm-install-log-test
path: /home/runner/.npm/_logs
30 changes: 23 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.GH_TOKEN }}

- run: npx commitlint --from HEAD~1 --to HEAD --verbose

- uses: actions/upload-artifact@v2
if: ${{ always() }}
if: ${{ failure() }}
with:
name: npm-install-log
name: npm-install-log-commitlint
path: /home/runner/.npm/_logs

- run: npx commitlint --from HEAD~1 --to HEAD --verbose

eslint:
name: Lint code
runs-on: ubuntu-latest
Expand All @@ -41,13 +41,20 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: 15
registry-url: https://npm.pkg.github.com/

- run: npm ci

- run: npm ci
env:
NODE_AUTH_TOKEN: ${{ secrets.GH_TOKEN }}

- run: npx eslint .

- uses: actions/upload-artifact@v2
if: ${{ failure() }}
with:
name: npm-install-log-eslint
path: /home/runner/.npm/_logs

test:
name: Run tests
runs-on: ubuntu-latest
Expand All @@ -58,7 +65,16 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: 15
registry-url: https://npm.pkg.github.com/

- run: npm ci
env:
NODE_AUTH_TOKEN: ${{ secrets.GH_TOKEN }}

- run: npm run test

- run: npm run test
- uses: actions/upload-artifact@v2
if: ${{ failure() }}
with:
name: npm-install-log-test
path: /home/runner/.npm/_logs

0 comments on commit 17472a8

Please sign in to comment.