Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/npm_and_yarn/json5-1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
bourgeoa committed Mar 24, 2024
2 parents 6398da3 + 48a9126 commit fcff5ab
Show file tree
Hide file tree
Showing 5 changed files with 2,717 additions and 4,027 deletions.
24 changes: 21 additions & 3 deletions .github/workflows/ci.yml
Expand Up @@ -20,8 +20,8 @@ jobs:
strategy:
matrix:
node-version:
- 14.x
- 16.x
- 18.x

steps:
- uses: actions/checkout@v2
Expand All @@ -34,7 +34,7 @@ jobs:
- run: npm test
- run: npm run build --if-present
- name: Save build
if: matrix.node-version == '14.x'
if: matrix.node-version == '16.x'
uses: actions/upload-artifact@v2
with:
name: build
Expand All @@ -51,7 +51,7 @@ jobs:
name: build
- uses: actions/setup-node@v1
with:
node-version: 14.x
node-version: 16.x
- uses: rlespinasse/github-slug-action@v3.x
- name: Append commit hash to package version
run: 'sed -i -E "s/(\"version\": *\"[^\"]+)/\1-${GITHUB_SHA_SHORT}/" package.json'
Expand All @@ -61,3 +61,21 @@ jobs:
with:
token: ${{ secrets.NPM_TOKEN }}
tag: ${{ env.GITHUB_REF_SLUG }}

npm-publish-latest:
needs: build
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/download-artifact@v2
with:
name: build
- uses: actions/setup-node@v1
with:
node-version: 16.x
- name: Disable pre- and post-publish actions
run: 'sed -i -E "s/\"((pre|post)publish)/\"ignore:\1/" package.json'
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
tag: latest
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Expand Up @@ -9,9 +9,9 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '14.x'
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion .nvmrc
@@ -1 +1 @@
v16.14.0
v18.19.0

0 comments on commit fcff5ab

Please sign in to comment.