Skip to content

workflow is updated

workflow is updated #4

Workflow file for this run

name: publish npm
on:
push:
branches:
- production
pull_request:
branches:
- production
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 12
- name: Publish to npm
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.base.ref == 'production')
run: npm publish --access public
working-directory: server
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}