Skip to content
This repository has been archived by the owner on Nov 5, 2023. It is now read-only.

Update README.md

Update README.md #75

Workflow file for this run

name: Publish Package
on:
push:
branches: [master]
workflow_dispatch:
jobs:
publish-npm:
name: Publish to NPM
if: github.repository_owner == 'd0rich'
outputs:
version: ${{ steps.publish.outputs.version }}
type: ${{ steps.publish.outputs.type }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Install dependencies
run: npm install
- uses: JS-DevTools/npm-publish@v1
id: publish
with:
access: public
token: ${{ secrets.NPM_PUBLISH_TOKEN }}
release:
runs-on: ubuntu-latest
needs: [publish-npm]
if: needs.publish-npm.outputs.type != 'none'
steps:
- uses: actions/checkout@v3
- uses: rickstaa/action-create-tag@v1
with:
tag: 'v${{ needs.publish-npm.outputs.version }}'
- name: Create Release
uses: ncipollo/release-action@v1
with:
tag: 'v${{ needs.publish-npm.outputs.version }}'
generateReleaseNotes: true
draft: false