Github Actions

Github Actions logo [Site](https://github.com/features/actions) | [Example](examples/.github)

Create file config:

mkdir .github
cd .github
mkdir workflows
cd workflows
touch release.yml

Copy the content and paste in release.yml

name: Publish

on:
  release:
    types: [published]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1
      - uses: actions/setup-node@v1
        with:
          node-version: 12
          registry-url: https://registry.npmjs.org/
      - run: yarn install
      - run: npm publish --access public
        env:
          NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

Example Projects

If you use this CI format, enter your project here.

Last updated

Was this helpful?