Skip to content

publish on release branch #45

publish on release branch

publish on release branch #45

Workflow file for this run

name: Simple-Jekyll-Search
on: [push]
jobs:
build_deploy:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: install
run: |
npm install
- name: test
run: |
npm t
# - name: start server for uat
# run: |
# npx http-server example/_site -p 4000
# - name: uat
# uses: cypress-io/github-action@v2
# with:
# record: false
# # cache-key: node-v${{ matrix.node }}-on-${{ runner.os }}-hash-${{ hashFiles('package-lock.json') }}
- name: Branch Name
run: |
echo ${GITHUB_REF##*/}
echo ${GITHUB_REF}
echo ${GITHUB_BASE_REF##*/}
echo ${GITHUB_BASE_REF}
- name: publish
if: contains(github.ref, 'release')
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
npm config set '//registry.npmjs.org/:_authToken' "${{ secrets.NPM_TOKEN }}"
npm publish