Skip to content

Commit

Permalink
update bring-shopping to v2 (#222)
Browse files Browse the repository at this point in the history
* update bring-shopping to v2

* use nvmrc

* downgrade chai

* update pipeline

* use npm ci

* fix pipeline

* downgrade testing

* test

* try to fix pack lock

* try to fix

* another try

* next try
  • Loading branch information
foxriver76 authored Nov 27, 2024
1 parent 68f890e commit 6fb0065
Show file tree
Hide file tree
Showing 5 changed files with 2,050 additions and 10,924 deletions.
36 changes: 14 additions & 22 deletions .github/workflows/test-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,15 @@ jobs:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version-file: '.nvmrc'

- name: Install package
run: npm i
run: npm ci

- name: Test package files
run: npm run test:package
Expand All @@ -46,14 +42,14 @@ jobs:
node-version: [18.x, 20.x, 22.x]
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Install package
run: npm i
run: npm ci

- name: Run unit tests
run: npm run test:unit
Expand All @@ -77,27 +73,23 @@ jobs:
startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version-file: '.nvmrc'

- name: Install package
run: npm i
run: npm ci

- name: Publish package to npm
run: |
npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
npm whoami
npm publish
# Dummy job for skipped builds - without this, github reports the build as failed
# Dummy job for skipped builds - without this, GitHub reports the build as failed
skip-ci:
if: contains(github.event.head_commit.message, '[skip ci]')
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,11 @@ For every shopping list a channel with the following states will be created:
Placeholder for the next version (at the beginning of the line):
### **WORK IN PROGRESS**
-->

### **WORK IN PROGRESS**
* (@foxriver76) updated `bring-shopping` module (get rid of deprecated `request` module)
* (@foxriver76) dropped support for Node.js 16 (it is EOL)

### 1.8.4 (2023-09-25)
* (foxriver76) fixed setting `undefined` state when no name specified

Expand Down
Loading

0 comments on commit 6fb0065

Please sign in to comment.