Skip to content

Commit

Permalink
Update dependencies and CI/CD workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
andyexeter committed Nov 4, 2023
1 parent 3e2bcef commit a086a79
Show file tree
Hide file tree
Showing 5 changed files with 300 additions and 259 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 4

[.github/workflows/**.yaml]
indent_size = 2
28 changes: 15 additions & 13 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,20 @@ jobs:

strategy:
matrix:
node-version: [18.x, 20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
node-version: [ 18.x, 20.x ]
# See supported Node.js release schedule at https://nodejs.org/en/about/previous-releases#release-schedule

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- run: yarn install
- run: yarn prettier --check
- run: yarn lint
- run: yarn test
- run: yarn test-module
- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'

- run: yarn install
- run: yarn prettier --check
- run: yarn lint
- run: yarn test
- run: yarn test-module
20 changes: 12 additions & 8 deletions .github/workflows/npm-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,13 @@ jobs:
test:
runs-on: 'ubuntu-22.04'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: 18
node-version: 18.x
cache: 'yarn'

- run: yarn install
- run: yarn prettier --check
- run: yarn lint
Expand All @@ -21,13 +24,14 @@ jobs:

publish-npm:
needs: test
runs-on: 'ubuntu-20.04'
runs-on: 'ubuntu-22.04'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: 14
node-version: 18.x
registry-url: https://registry.npmjs.org/
- run: yarn publish --access=public
- run: npm publish --access=public
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2019, Andy Palmer
Copyright (c) 2023, Andy Palmer

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading

0 comments on commit a086a79

Please sign in to comment.