-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(publish): add workflow to publish package (#46)
* ci(publish): add workflow to publish package * docs: update link to coveralls
- Loading branch information
Showing
2 changed files
with
42 additions
and
2 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,39 @@ | ||
name: Publish | ||
|
||
on: | ||
release: | ||
types: | ||
- published | ||
|
||
jobs: | ||
npm: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '20.x' | ||
registry-url: 'https://registry.npmjs.org' | ||
scope: '@articulate' | ||
cache: yarn | ||
- run: yarn install --frozen-lockfile | ||
- run: yarn publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_PUBLISH }} | ||
github-packages: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '20.x' | ||
registry-url: 'https://npm.pkg.github.com' | ||
scope: '@articulate' | ||
cache: yarn | ||
- run: yarn install --frozen-lockfile | ||
- run: yarn publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
# @articulate/funky | ||
|
||
[![@articulate/funky](https://img.shields.io/npm/v/@articulate/funky.svg)](https://www.npmjs.com/package/@articulate/funky) | ||
[![Coverage Status](https://coveralls.io/repos/github/articulate/funky/badge.svg?branch=master)](https://coveralls.io/github/articulate/funky?branch=master) | ||
[![Coverage Status](https://coveralls.io/repos/github/articulate/funky/badge.svg?branch=main)](https://coveralls.io/github/articulate/funky?branch=main) | ||
|
||
Functional helper library. | ||
|
||
Helps with all sorts of functional things, especially with Promises. | ||
|
||
See the [documentation](https://github.com/articulate/funky/blob/master/API.md) for details and examples. | ||
See the [documentation](./API.md) for details and examples. |