-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prepare for Palace to maintain a project copy. (#3)
- Loading branch information
Showing
4 changed files
with
90 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Publish Release | ||
|
||
on: | ||
# The build will be triggered when we publish a release. | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
||
- uses: actions/checkout@v4 | ||
|
||
- id: nvmrc | ||
run: echo "NODE_VERSION=$(cat .nvmrc)" >> $GITHUB_OUTPUT | ||
|
||
- name: Install Node.js 💻 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: "${{ steps.nvmrc.outputs.NODE_VERSION }}" | ||
registry-url: https://registry.npmjs.org/ | ||
|
||
- name: Install locked dependencies 🔧 | ||
run: npm clean-install | ||
|
||
- name: Version ✅ | ||
run: npm version --no-git-tag-version ${{ github.event.release.tag_name }} | ||
|
||
- name: Test 🧪 | ||
run: npm test | ||
|
||
- name: Publish 📚 | ||
run: npm publish --access public | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Test | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
# We want to run on external PRs, but not on our own internal PRs as they'll be run | ||
# by the push to the branch. This prevents duplicated runs on internal PRs. | ||
# Some discussion of this here: | ||
# https://github.community/t/duplicate-checks-on-push-and-pull-request-simultaneous-event/18012 | ||
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository | ||
|
||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/checkout@v4 | ||
|
||
- id: nvmrc | ||
run: echo "NODE_VERSION=$(cat .nvmrc)" >> $GITHUB_OUTPUT | ||
|
||
- name: Install Node.js 💻 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: "${{ steps.nvmrc.outputs.NODE_VERSION }}" | ||
|
||
- name: Install locked dependencies 🔧 | ||
run: npm clean-install | ||
|
||
- name: Test 🧪 | ||
run: npm test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,22 @@ | ||
# Deprecated | ||
# Web Publication Viewer | ||
|
||
As of July 2023, this app is no longer in use at NYPL, and the current implementation is https://github.com/NYPL-Simplified/web-reader. Please contact the eReading team in Digital for more information. For NYPL developers, please see additional documentation on [Confluence](https://confluence.nypl.org/display/DIGTL/Webreader). | ||
This is a [LYRASIS](http://lyrasis.org)-maintained fork of the deprecated NYPL [Library Simplified](http://www.librarysimplified.org/) `webpub-viewer` library. | ||
|
||
## webpub-viewer | ||
|
||
A viewer application for web publications, based on Hadrien Gardeur's proof of concept https://github.com/HadrienGardeur/webpub-viewer. | ||
|
||
|
||
``` | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters