Skip to content

Update release.yml

Update release.yml #16

Workflow file for this run

name: release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
on:
push:
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
environment: production
steps:
- uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "^18.4.0"
cache: "npm"
- name: Install dependencies
run: npm install
- name: Sets all variables to semver
run: npx semantic-release --branches main