Skip to content

Bump http-cache-semantics from 4.1.0 to 4.1.1 #570

Bump http-cache-semantics from 4.1.0 to 4.1.1

Bump http-cache-semantics from 4.1.0 to 4.1.1 #570

Workflow file for this run

name: Publish Package
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
pull_request:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
# This will only trigger the job on push, workflow_dispatch and on pull_request only if the pull request was merged, else it will skip the job
if: github.event_name != 'pull_request' || (github.event_name == 'pull_request' && github.event.pull_request.merged == true)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: EndBug/version-check@v1
id: check
with:
diff-search: true
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-node@v2
if: steps.check.outputs.changed == 'true'
with:
node-version: 12
- run: yarn install
if: steps.check.outputs.changed == 'true'
- run: yarn run build
if: steps.check.outputs.changed == 'true'
- uses: JS-DevTools/npm-publish@v1
if: steps.check.outputs.changed == 'true'
with:
token: ${{ secrets.NPM_AUTH_TOKEN }}
access: public