Skip to content

Commit

Permalink
Cleanup and CI script fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Glen Van Ginkel committed Mar 16, 2023
1 parent 442199d commit 9fbe546
Show file tree
Hide file tree
Showing 7 changed files with 794 additions and 1,952 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ jobs:

strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
node-version: [16.x, 18.x]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm i
- run: npm run build --if-present
- run: npm test
36 changes: 15 additions & 21 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,44 +5,38 @@ name: Node.js Package

on:
release:
branches: [master, dev]
types: [created]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 12
node-version: 18
- run: npm ci
- run: npm test

publish-npm:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 12
node-version: 18
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run build
- run: npm publish --verbose --access public --tag latest
- name: Set distribution tag for branch
run: |
if [[ $GITHUB_REF == 'refs/heads/master' ]]; then
echo "DISTRIBUTION_TAG=latest" >> "$GITHUB_ENV"
else
echo "DISTRIBUTION_TAG=develop" >> "$GITHUB_ENV"
fi
- run: npm publish --verbose --access public --tag ${{ env.DISTRIBUTION_TAG }} ./dist
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

# publish-gpr:
# needs: build
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-node@v1
# with:
# node-version: 12
# registry-url: https://npm.pkg.github.com/
# - run: npm ci
# - run: npm publish
# env:
# NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,29 @@

All notable changes to `@metrichor/jmespath` will be documented in this file.

## [1.0.1] - 1.0.1

Clean up scripts and unused dependencies

## Breaking

- Minimum node version upgraded to >=16

### Fixed

- Fix: CI build script
- Fix: Update CI publish script to use Node 18

### Changed

- Improvement: Refactor AST to improve types [@shortercode](https://github.com/shortercode)
- Package dependency updates
- Upgrade to [email protected]
- Upgrade to rollup@3
- Upgrade to deprecated coveralls package in favour of a new community version
- Cleaned up old linting comments


## [1.0.0] - 1.0.0

Update package dependencies to address vulnerabilities
Expand Down
Loading

0 comments on commit 9fbe546

Please sign in to comment.