Skip to content

release: Release version 3.0.3 #26

release: Release version 3.0.3

release: Release version 3.0.3 #26

Workflow file for this run

name: Release
on:
push:
tags: [v*]
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '18'
cache: yarn
scope: '@morev'
registry-url: https://registry.npmjs.org/
- name: Install dependencies
run: yarn install
- name: Build
run: yarn build
- name: Make public and configure postinstall hook
run: yarn prepack
- name: Getting latest changelog entry
uses: actions/github-script@v7
id: latest-changelog-entry
with:
result-encoding: string
script: |
const extractLatestChangelogEntry = require('./.github/extract-latest-changelog-entry.cjs');
return extractLatestChangelogEntry();
- name: Create release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
body: ${{steps.latest-changelog-entry.outputs.result}}
- name: Publish package
run: yarn publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}