Skip to content

DanielHZhang/npm-publish-release

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NPM Publish Release Action

Github action to automate publishing of new release to NPM and updating relevant version names.

Usage

name: publish
on:
  release:
    types: [released]
jobs:
  publish:
    name: Publish the release to NPM
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
        with:
          ref: ${{ github.event.release.target_commitish }}
      - uses: actions/setup-node@v2
        with:
          node-version: lts/*
          registry-url: https://registry.npmjs.org/
      - name: Run publish scripts
        uses: danielhzhang/npm-publish-release@main
        env:
          NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
          github-token: ${{ secrets.GITHUB_TOKEN }}

About

GitHub action for publishing a package release to NPM and updating its semantic version

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published