Skip to content

Progress

Progress #58

Workflow file for this run

on:
push:
branches:
- main
pull_request:
release:
types:
- created
name: CI
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
id-token: write # to enable use of OIDC for npm provenance
steps:
- uses: actions/checkout@master
- name: Use Node.js 20.x
uses: actions/setup-node@v2
with:
node-version: 20
- name: install
run: npm install
- name: build
run: npm run build
- name: lint
run: npm run lint
- name: Publish
if: (github.event_name == 'push' && github.ref == 'refs/heads/main' || github.event_name == 'release')
uses: menduz/oddish-action@master
with:
registry-url: "https://registry.npmjs.org"
access: public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}