Skip to content

feat: remove verson from package json #12

feat: remove verson from package json

feat: remove verson from package json #12

Workflow file for this run

name: Test, Build and Publish
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm t
build-publish:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: olegtarasov/[email protected]
id: tagName
with:
tagRegex: "v(.*)"
- name: Show release version
run: echo Release version ${{ steps.tagName.outputs.tag }}
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ steps.tagName.outputs.tag }}
release_name: Release v${{ steps.tagName.outputs.tag }}
body: Just another release
draft: false
prerelease: false
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm ci
- name: Change package.json version
run: npm version --no-git-tag-version ${{ steps.tagName.outputs.tag }}
- name: Build
run: npm run build
- name: Publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}