1.0.3 • Published 4 years ago

example-publish-npm v1.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

example-publish-npm

Shows how to publish a node library into npm using github actions. NOTE: Not meant for library installation usage but instead as an educational tool.

Workflow Used

name: Publish Release
on:
  release:
    types: 
      - published
jobs:
  ci:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - uses: actions/setup-node@v1
      with:
        node-version: '12.x'
    - run: npm ci
    - run: npm run lint
  publish-npm:
    needs: ci
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - uses: actions/setup-node@v1
      with:
        node-version: '12.x'
        registry-url: https://registry.npmjs.org/
    - run: npm ci
    - run: npm publish
      env: 
        NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}

Authors

  • Edward Romero - Initial work

License

This project is licensed under the MIT License - see the LICENSE file for details

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago