Initial commit

This commit is contained in:
Benjamin Canac
2021-11-16 12:49:00 +01:00
commit d1902448ae
19 changed files with 7375 additions and 0 deletions

19
scripts/release.sh Executable file
View File

@@ -0,0 +1,19 @@
#!/bin/bash
# Restore all git changes
git restore -s@ -SW -- example src test
# Resolve yarn
yarn
# Update token
if [[ ! -z ${NODE_AUTH_TOKEN} ]] ; then
echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" >> ~/.npmrc
echo "registry=https://registry.npmjs.org/" >> ~/.npmrc
echo "always-auth=true" >> ~/.npmrc
npm whoami
fi
# Release package
echo "Publishing @nuxthq/ui"
npm publish -q --access public