diff --git a/.circleci/config.yml b/.circleci/config.yml index f6b0f78..359383b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -25,13 +25,12 @@ jobs: - run: cd src && npm run test - run: cd src/dist && sudo npm link - - run: sudo -E npm install -g @angular/cli@next + - run: sudo -E npm install -g @angular/cli - run: sudo -E ng new your-angular-project --defaults - run: cd your-angular-project && sudo -E npm link angular-cli-ghpages - run: cd your-angular-project && sudo -E ng add angular-cli-ghpages - run: cd your-angular-project && sudo -E ng deploy --repo="$GITHUB_ORG/$NAME.git" --name="$GITHUB_NAME" --email="$GITHUB_EMAIL" --cname=angular-cli-ghpages.angular.schule - workflows: version: 2 build_and_deploy: @@ -40,4 +39,4 @@ workflows: filters: branches: only: - - master + - main diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e091f38..b18988f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,19 +1,18 @@ name: Build and test -on: [push] +on: + push: + branches: [main] jobs: build-and-deploy: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Use Node.js 14.x - uses: actions/setup-node@v1 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: - node-version: 14.x + node-version: 18 - name: Prepare run: | @@ -25,7 +24,7 @@ jobs: npm link cd .. cd .. - npm install -g @angular/cli@next + npm install -g @angular/cli ng new your-angular-project --defaults cd your-angular-project npm link angular-cli-ghpages diff --git a/src/package.json b/src/package.json index 782aa92..49796eb 100644 --- a/src/package.json +++ b/src/package.json @@ -1,6 +1,6 @@ { "name": "angular-cli-ghpages", - "version": "1.0.5", + "version": "1.0.6", "description": "Deploy your Angular app to GitHub pages directly from the Angular CLI. (ng deploy)", "main": "index.js", "bin": { @@ -55,8 +55,8 @@ "homepage": "https://github.com/angular-schule/angular-cli-ghpages/#readme", "devDependencies": { "@angular-devkit/architect": ">= 0.900 < 0.1600", - "@angular-devkit/core": "^9.0.0 || ^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0", - "@angular-devkit/schematics": "^9.0.0 || ^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0", + "@angular-devkit/core": "^9.0.0 || ^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0", + "@angular-devkit/schematics": "^9.0.0 || ^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0", "@types/fs-extra": "^9.0.4", "@types/jest": "^26.0.15", "@types/node": "^14.14.7", @@ -72,8 +72,8 @@ }, "peerDependencies": { "@angular-devkit/architect": ">= 0.900 < 0.1600", - "@angular-devkit/core": "^9.0.0 || ^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0", - "@angular-devkit/schematics": "^9.0.0 || ^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0" + "@angular-devkit/core": "^9.0.0 || ^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0", + "@angular-devkit/schematics": "^9.0.0 || ^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" }, "dependencies": { "commander": "^3.0.0-0",