-
Notifications
You must be signed in to change notification settings - Fork 476
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'fix-setting-subfamily' of https://github.com/StreakInTh…
…eSky/opentype.js into fix-setting-subfamily
- Loading branch information
Showing
16 changed files
with
241 additions
and
64 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,11 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "npm" # See documentation for possible values | ||
directory: "/" # Location of package manifests | ||
schedule: | ||
interval: "weekly" |
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,25 +1,60 @@ | ||
name: release | ||
name: Publish package to npm | ||
run-name: npm - publish ${{ github.event.inputs.version }} to ${{ github.event.inputs.npmDistTag }} | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
required: true | ||
description: 'SemVer version for npm. (i.e. 1.0.0)' | ||
npmDistTag: | ||
required: true | ||
default: 'latest' | ||
dryRun: | ||
description: 'Do a dry run (does not publish packages)' | ||
type: boolean | ||
|
||
jobs: | ||
publish: | ||
timeout-minutes: 25 | ||
runs-on: ubuntu-latest | ||
permissions: | ||
# required for publishing to npm with --provenance | ||
# see https://docs.npmjs.com/generating-provenance-statements | ||
id-token: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v2 | ||
- name: Print input | ||
env: | ||
THE_INPUT: '${{ toJson(github.event.inputs) }}' | ||
run: | | ||
echo $THE_INPUT | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
node-version: 20 | ||
registry-url: 'https://registry.npmjs.org' | ||
- run: npm install | ||
- run: npm run build | ||
- run: npm run dist | ||
- run: npm run test | ||
- run: npm pkg set name=$(basename ${{github.repository}}) | ||
- run: npm pkg set version=${{github.ref_name}} | ||
- run: npm publish --access public | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Build | ||
run: npm run build | ||
|
||
- name: Make dist files | ||
run: npm run dist | ||
|
||
- name: Run tests | ||
run: npm run test | ||
|
||
- name: Set version in package*.json | ||
run: npm pkg set version=${{ github.event.inputs.version }} | ||
|
||
- name: Publish package to npm | ||
run: npm publish --access public --tag ${{ github.event.inputs.npmDistTag }} ${{ env.DRY_RUN }} | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
# https://docs.npmjs.com/generating-provenance-statements | ||
NPM_CONFIG_PROVENANCE: true | ||
DRY_RUN: ${{ github.event.inputs.dryRun == 'true' && '--dry-run' || '' }} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
Oops, something went wrong.