mirror of
https://github.com/julia-actions/setup-julia.git
synced 2026-02-12 02:56:54 +08:00
Simplify the release process (no more build script or release branches) (#281)
* Simplify the release process (no more build script or release branches)
* Remove the `bin/` submodule
* npm run pack
* Use a different YAML syntax
Co-authored-by: Curtis Vogt <curtis.vogt@gmail.com>
* Use simpler (but equivalent) logic
Co-authored-by: Curtis Vogt <curtis.vogt@gmail.com>
* Fix a logic bug
* Remove some job matrices
Co-authored-by: Curtis Vogt <curtis.vogt@gmail.com>
* Intentionally fail a job (to make sure that `finalize` thus also fails)
* Revert "Intentionally fail a job (to make sure that `finalize` thus also fails)"
This reverts commit cd7944ca82.
---------
Co-authored-by: Curtis Vogt <curtis.vogt@gmail.com>
This commit is contained in:
49
Makefile
Normal file
49
Makefile
Normal file
@@ -0,0 +1,49 @@
|
||||
.NOTPARALLEL:
|
||||
|
||||
# This is the default target:
|
||||
.PHONY: pack
|
||||
pack: build
|
||||
npm run pack
|
||||
|
||||
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
|
||||
.PHONY: everything-from-scratch
|
||||
everything-from-scratch: cleanall install-packages build pack clean
|
||||
|
||||
# build does `npm run build`, but does not run `npm run pack`
|
||||
.PHONY: build
|
||||
build:
|
||||
npm run build
|
||||
|
||||
.PHONY: test
|
||||
test:
|
||||
npm run test
|
||||
|
||||
.PHONY: install-packages
|
||||
install-packages:
|
||||
rm -rf node_modules/
|
||||
# Note: we use `npm ci` instead of `npm install`, because we want to make sure
|
||||
# that we respect the versions in the `package-lock.json` lockfile.
|
||||
npm ci
|
||||
|
||||
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -rf node_modules/
|
||||
|
||||
.PHONY: cleanall
|
||||
cleanall: clean
|
||||
rm -rf lib/
|
||||
rm -rf dist/
|
||||
|
||||
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
|
||||
# asdf does not support Windows.
|
||||
# On Windows, users need to install the correct version of NodeJS themselves.
|
||||
.PHONY: unix-asdf-install
|
||||
unix-asdf-install:
|
||||
asdf plugin add nodejs # update this list when we add more tools to `.tool-versions`
|
||||
asdf install
|
||||
|
||||
# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
Reference in New Issue
Block a user