Skip to content
on:
push:
branches:
- main
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 16
# Not automatically building so we have a chance to compare the diffs before deploying
# - run: npm install
# - run: npm build
- id: publish
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
access: "public"
- name: Send notification to CSS channel in Teams
if: steps.publish.outputs.type != 'none'
uses: dhollerbach/[email protected]
with:
webhook: ${{ secrets.TEAMS_CSS_CHANNEL_WEBHOOK }}
message: "web-styles version changed: ${{ steps.publish.outputs.old-version }} => ${{ steps.publish.outputs.version }}"