Skip to content

Commit bf956ca

Browse files
authored
Merge pull request #14 from mutablelogic/dev
Dev
2 parents e5bf831 + e7b7f9f commit bf956ca

File tree

2 files changed

+19
-14
lines changed

2 files changed

+19
-14
lines changed

.github/workflows/publish.yaml

+18-13
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,31 @@ on:
33
release:
44
types: [created]
55
jobs:
6+
var:
7+
name: Set variables
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Set variables
11+
id: var
12+
run: |
13+
TAG="$(git describe --tags)" && echo "tag=${TAG#v}" >> $GITHUB_OUTPUT
14+
outputs:
15+
tag: ${{ steps.var.outputs.tag }}
616
build:
17+
name: Build
18+
needs: var
719
runs-on: ubuntu-latest
820
steps:
921
- uses: actions/checkout@v4
1022
- uses: actions/setup-node@v4
1123
with:
1224
registry-url: 'https://npm.pkg.github.com'
1325
scope: '@mutablelogic'
14-
- run: npm install
15-
- run: npm run build
16-
- run: npm publish
26+
- name: Publish
27+
run: |
28+
npm ci
29+
npm version ${{ needs.var.outputs.tag }} --no-git-tag-version --allow-same-version
30+
npm run build
31+
npm publish
1732
env:
1833
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19-
delete:
20-
needs: build
21-
runs-on: ubuntu-latest
22-
steps:
23-
- uses: actions/delete-package-versions@v5
24-
with:
25-
package-name: js-framework
26-
package-type: 'npm'
27-
num-old-versions-to-delete: 1
28-
min-versions-to-keep: 2

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mutablelogic/js-framework",
3-
"version": "0.0.49",
3+
"version": "0.0.0",
44
"description": "Javascript Framework",
55
"main": "dist/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)