Skip to content

Merge pull request #12 from slatchma/update_dependencies #21

Merge pull request #12 from slatchma/update_dependencies

Merge pull request #12 from slatchma/update_dependencies #21

Workflow file for this run

# This is the main workflow file. It is run every time a PR is merged
# Required env:
# NPM_TOKEN
# GITHUB_TOKEN
name: Main workflow
on:
push:
branches:
- master
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
# Checkout the repository
- uses: actions/checkout@v4
# Setup the node environment
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 18.x
cache: 'npm'
# Install dependencies
- run: npm ci --prefer-offline
# Release npm package
- run: npm run semantic-release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_NPM_CONFIG_REGISTRY: https://npm.pkg.github.com/
GITHUB_NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_NPM_CONFIG_REGISTRY: https://registry.npmjs.org/
NPM_NPM_TOKEN: ${{ secrets.NPM_TOKEN }}