Skip to content

Commit

Permalink
test node update
Browse files Browse the repository at this point in the history
  • Loading branch information
davidacevedo committed Feb 4, 2023
1 parent bcb02da commit 60358f3
Show file tree
Hide file tree
Showing 4 changed files with 549 additions and 384 deletions.
64 changes: 32 additions & 32 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
on:
pull_request:
branches: [master]
name: prerelease
jobs:
prerelease:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 16
uses: actions/setup-node@v2
with:
node-version: 16
registry-url: 'https://registry.npmjs.org'
- run: yarn install --frozen-lockfile
- run: npm version prerelease --preid=$GITHUB_HEAD_REF-`git rev-parse --short HEAD` --git-tag-version=false --commit-hooks=false
- run: npm publish --tag prerelease-$GITHUB_HEAD_REF
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Extract NPM package name
run: echo "::set-output name=npm-name::`node -p -e "require('./package.json').name"`"
id: npm-name
- name: Extract npm package version
run: echo "::set-output name=npm-version::`node -p -e "require('./package.json').version"`"
id: npm-version
- name: Comment PR
uses: marocchino/sticky-pull-request-comment@v2
with:
recreate: true
message: |
Released prerelease version `${{ steps.npm-version.outputs.npm-version }}`.
You may now run `npm install ${{ steps.npm-name.outputs.npm-name }}@${{ github.head_ref }}`
# on:
# pull_request:
# branches: [master]
# name: prerelease
# jobs:
# prerelease:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - name: Use Node.js 16
# uses: actions/setup-node@v2
# with:
# node-version: 16
# registry-url: 'https://registry.npmjs.org'
# - run: yarn install --frozen-lockfile
# - run: npm version prerelease --preid=$GITHUB_HEAD_REF-`git rev-parse --short HEAD` --git-tag-version=false --commit-hooks=false
# - run: npm publish --tag prerelease-$GITHUB_HEAD_REF
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# - name: Extract NPM package name
# run: echo "::set-output name=npm-name::`node -p -e "require('./package.json').name"`"
# id: npm-name
# - name: Extract npm package version
# run: echo "::set-output name=npm-version::`node -p -e "require('./package.json').version"`"
# id: npm-version
# - name: Comment PR
# uses: marocchino/sticky-pull-request-comment@v2
# with:
# recreate: true
# message: |
# Released prerelease version `${{ steps.npm-version.outputs.npm-version }}`.
# You may now run `npm install ${{ steps.npm-name.outputs.npm-name }}@${{ github.head_ref }}`
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
12
16
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
"types": "types/index.d.ts",
"esnext": "src/index.js",
"sideEffects": false,
"engines": {
"node": ">=16"
},
"scripts": {
"test": "jest --watch",
"test:ci": "jest",
Expand Down Expand Up @@ -311,7 +314,7 @@
"eslint-plugin-react": "^7.30.0",
"eslint-plugin-storybook": "^0.6.1",
"holderjs": "^2.9.3",
"jest": "28.1.3",
"jest": "^29.4.1",
"jest-environment-jsdom": "28.1.3",
"jsdom": "^19.0.0",
"json-loader": "^0.5.7",
Expand Down

0 comments on commit 60358f3

Please sign in to comment.