157 Commits

Author SHA1 Message Date
Tom Jenkinson f525f4783e Use GitHub release env for npm publish (#7544)
* Use GitHub `release` env for npm publish

As this is used for npm OIDC. Also stops passing the token given OIDC doesn't need it

* Do not write token to config
2025-09-18 17:58:10 +01:00
Tom Jenkinson 46a05c79fb Remove tab at end of deployments readme
Which is causing the list to be really spaced out for some reason
2023-12-15 21:44:16 +00:00
Tom Jenkinson 48982955e4 Add the final / at the end of deployment url 2023-12-15 21:36:50 +00:00
Tom Jenkinson c895500574 Fix path to script again 2023-12-15 17:18:12 +00:00
Tom Jenkinson de5a774d3f Fix path to deployment readme script 2023-12-15 17:07:00 +00:00
Tom Jenkinson a6a8c0b1fd Fix deployment branch update commit messages
Just noticed this has been broken for a while
2023-12-15 17:06:40 +00:00
Tom Jenkinson 93a8ccc01d Store deployments in json file, and generate md and txt file from that (#6044) 2023-12-15 16:52:01 +00:00
Tom Jenkinson d0ac1a7d72 Rollup 4 (#5886) 2023-11-23 09:01:49 +00:00
renovate[bot] 359197f20b chore(deps): update dependency prettier to v3 (#5646)
* chore(deps): update dependency prettier to v3

* run prettier

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Tom Jenkinson <tom@tjenkinson.me>
2023-08-22 11:24:59 +01:00
Tom Jenkinson a9afcd5f50 Setup npm provenance statements (#5406)
* give publish job permissions for npm provenance

* add `—provenance` flag to `npm publish`

* remove unneeded `contents` permission
2023-04-20 17:32:20 +01:00
Tom Jenkinson 37e325f75e move calculating valid version for cf build to right place 2023-03-17 21:58:39 +00:00
Tom Jenkinson 4318e948ec switch cf deployment to video-dev.org 2023-03-17 20:08:53 +00:00
Tom Jenkinson c65f2fb44f set the CLOUDFLARE_ACCOUNT_ID env var 2023-03-17 16:16:21 +00:00
Tom Jenkinson 489e9419ce Switch from netlify to CloudFlare Pages (#5305)
* add a script that will deploy the `netlify` dir to cloudflare pages

* switch everything from netlify over to cf pages

* fix wrangler version

* add `/` to api-docs url

* fix name of cloudflare dev project
2023-03-17 16:07:30 +00:00
Tom Jenkinson ddbaa8182c set the git user email when updating deployments file (#5247) 2023-02-21 08:37:26 +00:00
Tom Jenkinson 87c3a3538e switch to node 18, unpin netlify-cli, and workaround npm ci then being broken (#5180)
* switch to node 18

which is now LTS

* unpin `netlify-cli`

* use `npm-ci-please` to workaound `npm ci` being broken

fixes #5115

* set version using `npm version`

which will also update the version in the package-lock

* be selective about what goes in artifact

to speed things up

* use newer `npm-ci-please`

* fix setting version on netlify

* fix permission on script

* listen on all interfaces for sauce labs

because otherwise with node 18 the server is not reachable through the proxy for some reason
2023-01-23 17:13:47 +00:00
Tom Jenkinson 6a7524fe72 fix Netlify redirects (#5177)
* fix Netlify redirects

* remove api docs redirect

* Revert "remove api docs redirect"

This reverts commit e86af6f4f2.

* remove the index file from api docs

* also redirect index.html
2023-01-21 16:17:20 +00:00
Rob Walch 485fe15f08 Replace ESDocs generated api-docs with api-documenter markdown (#5163) 2023-01-20 08:57:20 -08:00
Tom Jenkinson 570f1aaca9 make check-already-published hit api directly (#4892)
because https://github.com/npm/cli/issues/2740 broke the npm `--json` flag
2022-09-10 23:31:58 +01:00
Tom Jenkinson ef0d09c30d bail if new tag does not directly follow previous version (#4855)
* bail if new tag does not directly follow previous version

This is to try and prevent typos that could trigger an incorrect version publish into the future that cannot be undone.

refs #4841

* do not bail if tag exists, because it would for real tags
2022-08-26 22:36:47 +01:00
Tobias Speicher 9169e81820 refactor: replace deprecated String.prototype.substr()
.substr() is deprecated so we replace it with .slice() which works similarily but isn't deprecated

Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
2022-03-22 08:32:05 +01:00
Tom Jenkinson 6c7dce643f include unannotated tags in set-package-version
closes #4398

checked locally with

`git describe --tag --abbrev=0 --match="v*" v1.0.11~1` => v1.0.10

vs

`git describe --abbrev=0 --match="v*" v1.0.11~1` => v1.0.8
2021-10-27 12:33:04 +01:00
Tom Jenkinson 11d5887655 update precommit hook for new husky version 2021-04-07 21:33:59 +01:00
Tom Jenkinson c029aa8b39 Switch to npm 7 (take 2) (#3675)
* switch to npm 7 (take 2)

* specify encoding
2021-04-03 11:38:53 +01:00
Tom Jenkinson 729a36d409 switch to default print width 2020-12-24 13:31:43 +00:00
Tom Jenkinson 7342d4a6db run 'npm run prettier' 2020-12-23 20:15:35 +00:00
Tom Jenkinson eeeae3c72d add 'eslint-config-prettier' and switch to lint-staged
because we want to run the eslint check in addition to the prettier one
2020-12-23 19:45:58 +00:00
Tomohiro IKEDA c2f41b73d1 chore: Run prettier on changed files 2020-12-24 04:07:43 +09:00
Tomohiro IKEDA fe900c0891 Merge remote-tracking branch 'upstream/master' into feat/prettier 2020-12-24 04:03:53 +09:00
Tom Jenkinson 694d14b57c fix the canary version in set-package-version.js 2020-11-03 18:26:31 +00:00
Tom Jenkinson 115ffdaa14 alpha => canary 2020-11-03 17:52:28 +00:00
Tom Jenkinson 544b4ba07c npm/github release with github action and remove travis 2020-11-01 13:57:38 +00:00
Tom Jenkinson 90b8bdbbeb remove Netlify from travis 2020-10-31 15:16:24 +00:00
Tom Jenkinson 679b70947b set permissions on netlify.sh 2020-10-31 14:22:00 +00:00
Tom Jenkinson a4b23a648b deploy versioned netlify builds from gh-action 2020-10-31 14:15:20 +00:00
Tom Jenkinson d1c383e33c stop running functional tests on travis 2020-10-27 21:45:00 +00:00
Rob Walch f61ab8a688 Use npm sauce-connect-launcher in functional tests run on travis 2020-09-10 18:39:16 -04:00
Tom Jenkinson b70ecbb1e2 update message
Co-authored-by: Rob Walch <robwalch@users.noreply.github.com>
2020-07-01 19:00:59 +01:00
Tom Jenkinson f6212deca1 always check version is greater than previous 2020-07-01 18:02:57 +01:00
Rob Walch 90cf214d1a Fix travis "release" build 2020-07-01 11:42:15 -04:00
Tom Jenkinson dc627221b8 include PR number in pr versions 2020-06-30 21:13:02 +01:00
Rob Walch 9a7aa0b624 Fix semver.inc 2020-06-30 14:58:57 -04:00
Tom Jenkinson 9b962967c8 Merge branch 'master' into task/semver-deployments 2020-06-23 18:11:14 +01:00
Tom Jenkinson d058eddaf8 switch to alpha instead of canary and ensure alphas have lower precedense than manual tags
Switching to alpha instead of canary because the semver sorting algorithm is alphabetic and the automated release should always have a lower precendence than manual ones.

Always prefix to the last version even when it's a prerelease so that the ordering is correct, and so that automated alpha releases are able to take precendence over manual ones when new commits are pushed.

Make the prefix `0.alpha` instead of just `alpha` so that it's easy to check if a manual version could be lower than an existing alpha version without dissalowing things like `-rc.0`

See discussion in #2822
2020-06-23 18:10:17 +01:00
Rob Walch 82fbefd9ce Tag canaries as alpha releases and append alpha revision to latest version in ci builds 2020-06-22 17:03:53 -04:00
Rob Walch 5517830271 Add semver meta tags to latest (pre-)release version for deployments 2020-06-21 13:01:53 -04:00
Tom Jenkinson 3ec2e6d269 do not manuall deploy netlify hls-js-latest anymore
because hls-js-dev now automatically builds master.

hls-js-latest now redirects to hls-js-dev
2020-06-21 12:02:06 +01:00
Tom Jenkinson 11eccd90c8 also update netlify domain in link text 2020-06-19 23:22:22 +01:00
Tom Jenkinson 44af2907f5 Revert "install chromium and run unit tests on netlify"
This reverts commit ac097ecf61.
2020-06-19 23:09:37 +01:00
Tom Jenkinson 9e574eb5b2 Revert "provide CHROME_BIN for tests"
This reverts commit 70f083f8b7.
2020-06-19 23:09:34 +01:00