@@ -28,28 +28,28 @@ jobs:
28
28
echo "::set-output name=package_name::$PACKAGE_NAME"
29
29
echo "::set-output name=current_version::$PACKAGE_VERSION"
30
30
31
- - name : Install dependencies
32
- run : npm install
31
+ # - name: Install dependencies
32
+ # run: npm install
33
33
34
- - name : Run tests
35
- run : npm test
34
+ # - name: Run tests
35
+ # run: npm test
36
36
37
- - name : Build package
38
- run : npm run build
37
+ # - name: Build package
38
+ # run: npm run build
39
39
40
- - name : Ensure no untracked changes after build
41
- run : |
42
- if [ -n "$(git status --porcelain)" ]; then
43
- echo "Untracked changes found after build"
44
- exit 1
45
- else
46
- echo "No untracked changes"
47
- fi
40
+ # - name: Ensure no untracked changes after build
41
+ # run: |
42
+ # if [ -n "$(git status --porcelain)" ]; then
43
+ # echo "Untracked changes found after build"
44
+ # exit 1
45
+ # else
46
+ # echo "No untracked changes"
47
+ # fi
48
48
49
- - name : Set Git config
50
- run : |
51
- git config --local user.email "[email protected] "
52
- git config --local user.name "Github Actions"
49
+ # - name: Set Git config
50
+ # run: |
51
+ # git config --local user.email "[email protected] "
52
+ # git config --local user.name "Github Actions"
53
53
54
54
- name : Iterate rc version
55
55
run : npm version prerelease --preid=rc
@@ -58,14 +58,15 @@ jobs:
58
58
run : |
59
59
# Get the current version from package.json
60
60
current_base_version=$(node -p "require('./package.json').version") | cut -d "-" -f 1
61
+ echo $current_base_version
61
62
# Check for matching npm versions
62
- matching_versions=$(npm view ${{ steps.get_package_info.outputs.package_name }} versions --json | grep " $current_base_version" )
63
+ matching_versions=$(npm view ${{ steps.get_package_info.outputs.package_name }} versions --json | grep $current_base_version)
63
64
echo $matching_versions
64
65
echo $current_base_version
65
66
if [ -n "$matching_versions" ]; then
66
67
# Overwrite package.json version with the latest rc version
67
68
latest_rc_version=$(echo "$matching_versions" | sort -V | tail -n 1)
68
- npm version " $latest_rc_version"
69
+ npm version $latest_rc_version
69
70
echo "Updated package.json to version $latest_rc_version"
70
71
# Run npm version prerelease again
71
72
npm version prerelease --preid=rc
0 commit comments