Skip to content

Commit

Permalink
ci(publish): add workflow to publish package (#46)
Browse files Browse the repository at this point in the history
* ci(publish): add workflow to publish package

* docs: update link to coveralls
  • Loading branch information
mloberg authored Sep 26, 2023
1 parent d77b625 commit da03da8
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 2 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/publish.yml
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 }}
5 changes: 3 additions & 2 deletions README.md
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.

0 comments on commit da03da8

Please sign in to comment.