Skip to content

Commit

Permalink
CI: update scope
Browse files Browse the repository at this point in the history
  • Loading branch information
ihardy committed Dec 8, 2023
1 parent 9c22255 commit afa24b2
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 3 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/build-npm-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Publish release npm

on:
release:
types: [published]

jobs:
build:
env:
FOLIO_NPM_REGISTRY: 'https://repository.folio.org/repository/npm-folioci/'
RESHARE_NPM_REGISTRY: 'https://registry.npmjs.org'
NODEJS_VERSION: '18'

runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v3
with:
node-version: ${{ env.NODEJS_VERSION }}
registry-url: ${{ env.RESHARE_NPM_REGISTRY }}
scope: '@projectreshare'

- name: Set yarn config
run: |
yarn config set @folio:registry ${{ env.FOLIO_NPM_REGISTRY }}
yarn config set @projectreshare:registry ${{ env.RESHARE_NPM_REGISTRY }}
- run: yarn install

- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
31 changes: 31 additions & 0 deletions .github/workflows/build-npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build NPM

on:
push:

jobs:
build:
env:
FOLIO_NPM_REGISTRY: 'https://repository.folio.org/repository/npm-folioci/'
RESHARE_NPM_REGISTRY: 'https://registry.npmjs.org'
NODEJS_VERSION: '18'

runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v3
with:
node-version: ${{ env.NODEJS_VERSION }}
registry-url: ${{ env.RESHARE_NPM_REGISTRY }}
scope: '@projectreshare'

- name: Set yarn config
run: |
yarn config set @folio:registry ${{ env.FOLIO_NPM_REGISTRY }}
yarn config set @projectreshare:registry ${{ env.RESHARE_NPM_REGISTRY }}
- run: yarn install
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@reshare/plugin-rs-siquery-vufind",
"name": "@projectreshare/plugin-rs-siquery-vufind",
"version": "1.2.0",
"description": "Plugin to find an instance from an SI via the Vufind API",
"main": "src/index.js",
Expand All @@ -19,10 +19,14 @@
"eslint": "^7.32.0"
},
"dependencies": {
"@reshare/stripes-reshare": "^1.11.0",
"@projectreshare/stripes-reshare": "^1.11.0",
"ky": "^0.23.0",
"query-string": "^8.1.0"
},
"resolutions": {
"@rehooks/local-storage": "2.4.4",
"postcss-nesting" : "^10.0.0"
},
"peerDependencies": {
"@folio/stripes": "^7.1.0 || ^8.0.0",
"react": "*",
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { useInfiniteQuery } from 'react-query';
import { useState } from 'react';

import { Button, LoadingPane, Modal, MultiColumnList, Pane, Paneset } from '@folio/stripes/components';
import { useIntlCallout } from '@reshare/stripes-reshare';
import { useIntlCallout } from '@projectreshare/stripes-reshare';

import SearchAndFilter from './components/SearchAndFilter';
import css from './index.css';
Expand Down

0 comments on commit afa24b2

Please sign in to comment.