milkee 3.1.1 → 3.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "milkee",
3
- "version": "3.1.1",
3
+ "version": "3.1.2",
4
4
  "description": "A simple CoffeeScript build tool with coffee.config.cjs",
5
5
  "main": "dist/main.js",
6
6
  "bin": {
@@ -35,7 +35,15 @@ jobs:
35
35
  git push
36
36
 
37
37
  - name: Publish to npm
38
- run: npm publish --provenance --access public
38
+ run: |
39
+ VERSION=$(node -p "require('./package.json').version")
40
+ # If version includes 'dev', publish with 'dev' tag, otherwise use 'latest'
41
+ if echo "$VERSION" | grep -q 'dev'; then
42
+ TAG=dev
43
+ else
44
+ TAG=latest
45
+ fi
46
+ npm publish --provenance --access public --tag "$TAG"
39
47
  env:
40
48
  NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
41
49