Skip to content

fix: Better handling of source map for importing files (#336) #37

fix: Better handling of source map for importing files (#336)

fix: Better handling of source map for importing files (#336) #37

Workflow file for this run

name: Publish a package to the npm registry
on:
push:
branches:
- master
- develop
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: 'Install nodejs 18'
uses: actions/setup-node@v3
with:
node-version: '18'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: |
corepack enable
yarn install
- name: Build
run: yarn run build
- name: Get current package version
id: package_version
uses: martinbeentjes/npm-get-version-action@v1.1.0
- name: Get Changelog Entry
id: changelog_reader
uses: mindsers/changelog-reader-action@v2.0.0
with:
validation_level: warn
version: ${{ steps.package_version.outputs.current-version }}
path: 'CHANGELOG.md'
- name: Publish package
if: github.ref == 'refs/heads/master'
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Create a Release
if: github.ref == 'refs/heads/master'
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name : ${{ steps.package_version.outputs.current-version}}
release_name: ${{ steps.package_version.outputs.current-version}}
body: ${{ steps.changelog_reader.outputs.changes }}