codex-factory/.github/workflows/publish_npmjs.yaml
dependabot[bot] bec4596455
build(deps): bump actions/checkout from 2 to 3 (#139)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-31 10:36:23 +02:00

26 lines
669 B
YAML

# After new release is published on github, publish it to npmjs
name: Publish on npmjs
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v1
with:
node-version: 16
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- uses: apexskier/github-release-commenter@v1
with:
GITHUB_TOKEN: ${{ secrets.REPO_GHA_PAT }}
comment-template: |
Release {release_link} addresses this.