Skip to content

Chore: Corrige erro de types #4

Chore: Corrige erro de types

Chore: Corrige erro de types #4

Workflow file for this run

name: Publish alpha version to NPM
on:
push:
branches:
- alpha
jobs:
publish:
runs-on: [ubuntu-latest]
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- uses: paulhatch/[email protected]
id: semver
with:
version_format: "${major}.${minor}.${patch}-alpha.${increment}"
- name: Build & Tag
run: |
npm install
npm run build
npm version ${{ steps.semver.outputs.version }} --no-git-tag-version
- name: Publish to NPM
uses: JS-DevTools/npm-publish@v2
with:
tag: alpha
token: ${{ secrets.NPM_TOKEN }}
- name: Publish Github Release
uses: softprops/action-gh-release@v1
with:
tag_name: v${{ steps.semver.outputs.version }}
target_commitish: ${{ github.sha }}
draft: false
prerelease: true