Skip to content

Merge branch 'master' of github.com:LabEG/Serializable #32

Merge branch 'master' of github.com:LabEG/Serializable

Merge branch 'master' of github.com:LabEG/Serializable #32

Workflow file for this run

name: NPM Publish
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
on:
push:
branches: [ master ]
schedule:
- cron: '0 12 * * 2' # Every Tuesday at 12:00 UTC (3 hours after Dependabot runs at 09:00)
workflow_dispatch:
permissions:
contents: write
id-token: write # Required for npm provenance
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 'latest'
registry-url: https://registry.npmjs.org/
cache: 'npm'
- name: Configure Git
run: |
git config --global user.email "[email protected]"
git config --global user.name "Eugene Labutin"
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm run test
- name: Create release
run: npm run release
- name: Push changes and tags
run: git push && git push --tags
- name: Publish to NPM
run: npm publish --provenance --access public