Skip to content

Commit 5afceca

Browse files
authored
Merge pull request #27 from lob/chore/SYNC-229
chore/SYNC-229/npm publish upgrade
2 parents d7e0ebf + 343ae35 commit 5afceca

File tree

5 files changed

+54
-20
lines changed

5 files changed

+54
-20
lines changed

.github/workflows/publish.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: NPM Publish
2+
on:
3+
push:
4+
branches: [main]
5+
workflow_dispatch:
6+
7+
permissions:
8+
id-token: write # Required for OIDC
9+
contents: write
10+
11+
jobs:
12+
publish:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v5
17+
18+
- name: Setup Node.js
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version-file: ".node-version"
22+
registry-url: https://registry.npmjs.org
23+
24+
- name: Install npm
25+
run: npm install -g npm@11.5.1
26+
27+
- name: Install dependencies
28+
run: npm install
29+
30+
- name: Publish to npm
31+
id: publish
32+
uses: JS-DevTools/npm-publish@v4

.github/workflows/test.yml

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,29 @@
1-
name: Workflow Test
1+
name: Workflow Test
22

33
on: push
44

5-
65
jobs:
76
node_tests:
87
runs-on: ubuntu-latest
98
strategy:
109
matrix:
11-
node: ['16']
10+
node: ['20']
1211
steps:
13-
- uses: actions/checkout@v2
14-
- name: Setup
15-
uses: actions/setup-node@v2
16-
with:
17-
node-version: ${{ matrix.node }}
18-
- name: Create NYC folder
19-
run: mkdir .nyc_output
20-
- name: Install Dependencies
21-
run: npm install
22-
- name: Run tests
23-
run: npm run test
12+
- uses: actions/checkout@v2
13+
- name: Setup
14+
uses: actions/setup-node@v2
15+
with:
16+
node-version: ${{ matrix.node }}
17+
- name: Create NYC folder
18+
run: mkdir .nyc_output
19+
- name: Install Dependencies
20+
run: npm install
21+
- name: Run tests
22+
run: npm run test
2423
# - name: Coverage
2524
# run: npm run test-lcov
2625
# - name: Coveralls
2726
# uses: coverallsapp/github-action@master
2827
# with:
2928
# github-token: ${{ secrets.GITHUB_TOKEN }}
30-
# path-to-lcov: ./coverage/lcov.info
29+
# path-to-lcov: ./coverage/lcov.info

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
20.19.4

package-lock.json

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
{
22
"name": "@lob/react-address-autocomplete",
3-
"version": "2.2.0",
3+
"version": "3.0.0",
44
"description": "A collection of components and utility functions for verifying and suggesting addresses using Lob",
55
"author": "Lob",
66
"license": "MIT",
77
"main": "dist/index.js",
88
"module": "dist/index.modern.js",
99
"source": "src/index.js",
1010
"engines": {
11-
"node": ">=14"
11+
"node": ">=20",
12+
"npm": ">=11.5.1"
1213
},
1314
"scripts": {
1415
"build": "microbundle-crl --no-compress --format modern,cjs --css inline",

0 commit comments

Comments
 (0)