blob: 33525c8ca42ccb0d227753b0ba656e6a201c6ecf (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#!/bin/bash
set -e
ESLINT_VERSION="7.27.0"
PACKAGES="eslint@$ESLINT_VERSION @yandex-int/lint@1.15.0"
echo "Creating temporary directory…"
TMP_DIR=$(mktemp -d)
cd $TMP_DIR
echo "Temporary directory ${TMP_DIR} is created"
echo "Installing packages…"
ESLINT_DIR="eslint-resource"
mkdir $ESLINT_DIR && cd $ESLINT_DIR
npm init -y
npm install --save-dev --save-exact --registry=https://npm.yandex-team.ru ${PACKAGES}
echo "Packages are installed"
echo "Creating archive…"
RESOURCE_DIR="node_modules"
ARCHIVE="eslint-$ESLINT_VERSION.tar.gz"
tar --create --gzip --file=$ARCHIVE $RESOURCE_DIR
echo "Archive $(pwd)/$ARCHIVE is created"
echo "Uploading file ${ARCHIVE}…"
DESCRIPTION="Bundle for https://st.yandex-team.ru/FEI-24069. Content: ${PACKAGES}."
ya upload $ARCHIVE -d="${DESCRIPTION}" --ttl="inf" --attr="eslint=${ESLINT_VERSION}"
echo "File $ARCHIVE is uploaded"
echo "Cleaning up…"
rm -rf $TMP_DIR
echo "Done"
|