Skip to content

Commit

Permalink
Pipeline fixes, squashed
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarhermoso committed Jul 21, 2023
1 parent 4dc64e6 commit ad7784e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Publish package to GitHub Packages
on:
release:
types: [created]
push:
workflow_dispatch:
jobs:
build:
Expand All @@ -11,14 +10,20 @@ jobs:
packages: write
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
# Setup .npmrc file to publish to GitHub Packages
- uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://npm.pkg.github.com'
# Defaults to the user or organization that owns the workflow file
scope: '@kedyou'
- run: npm ci
- run: npm publish
- name: Build and publish
run: |
npm version --no-git-tag-version "$(npm view @kedyou/mathlive version)"
npm version --no-git-tag-version --preid=kedyou prerelease
npm ci
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "@kedyou/mathlive",
"version": "0.95.0-kedyou.1",
"description": "A web component for math input",
"license": "MIT",
"funding": {
Expand Down Expand Up @@ -55,9 +54,7 @@
"lint": "eslint --fix src/; prettier -w src/",
"prepare": "bash ./scripts/build.sh production",
"start": "bash ./scripts/start.sh",
"test": "bash ./scripts/test.sh",
"version": "bash ./scripts/version.sh",
"postversion": "bash ./scripts/github-release.sh"
"test": "bash ./scripts/test.sh"
},
"author": "Arno Gourdol <[email protected]>",
"contributors": [
Expand Down

0 comments on commit ad7784e

Please sign in to comment.