├── .eslintignore ├── .eslintrc.js ├── .github ├── FUNDING.yml └── workflows │ ├── codeql-analysis.yml │ ├── prbuild.yml │ └── test.yml ├── .gitignore ├── .husky ├── .gitignore ├── commit-msg └── pre-commit ├── .travis.yml ├── CHANGELOG.md ├── LICENSE ├── README.md ├── action.yml ├── appveyor.yml ├── commitlint.config.js ├── dist ├── index.js └── license.txt ├── package-lock.json ├── package.json ├── release.config.js ├── renovate.json ├── spec ├── .eslintrc.js ├── beta │ └── spec-spec.js ├── stable │ └── spec-spec.js ├── v1.50.0-beta0 │ └── spec-spec.js └── v1.50.0 │ └── spec-spec.js └── src ├── action.js ├── bin.js └── setup-atom.js /.eslintignore: -------------------------------------------------------------------------------- 1 | dist/ 2 | -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | env: { 3 | node: true, 4 | }, 5 | extends: "eslint:recommended", 6 | parserOptions: { 7 | ecmaVersion: 2018, 8 | }, 9 | rules: { 10 | semi: "error", 11 | quotes: "error", 12 | "no-console": "error", 13 | indent: ["error", "tab", { SwitchCase: 1 }], 14 | "comma-dangle": [2, "always-multiline"], 15 | eqeqeq: 2, 16 | }, 17 | }; 18 | -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: [UziTech] 4 | -------------------------------------------------------------------------------- /.github/workflows/codeql-analysis.yml: -------------------------------------------------------------------------------- 1 | # For most projects, this workflow file will not need changing; you simply need 2 | # to commit it to your repository. 3 | # 4 | # You may wish to alter this file to override the set of languages analyzed, 5 | # or to provide custom queries or build logic. 6 | name: "CodeQL" 7 | 8 | on: 9 | push: 10 | branches: [master] 11 | pull_request: 12 | # The branches below must be a subset of the branches above 13 | branches: [master] 14 | schedule: 15 | - cron: '0 3 * * 0' 16 | 17 | jobs: 18 | analyze: 19 | name: Analyze 20 | runs-on: ubuntu-latest 21 | 22 | strategy: 23 | fail-fast: false 24 | matrix: 25 | # Override automatic language detection by changing the below list 26 | # Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python'] 27 | language: ['javascript'] 28 | # Learn more... 29 | # https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection 30 | 31 | steps: 32 | - name: Checkout repository 33 | uses: actions/checkout@v3 34 | with: 35 | # We must fetch at least the immediate parents so that if this is 36 | # a pull request then we can checkout the head. 37 | fetch-depth: 2 38 | 39 | # If this run was triggered by a pull request event, then checkout 40 | # the head of the pull request instead of the merge commit. 41 | - run: git checkout HEAD^2 42 | if: ${{ github.event_name == 'pull_request' }} 43 | 44 | # Initializes the CodeQL tools for scanning. 45 | - name: Initialize CodeQL 46 | uses: github/codeql-action/init@v2 47 | with: 48 | languages: ${{ matrix.language }} 49 | # If you wish to specify custom queries, you can do so here or in a config file. 50 | # By default, queries listed here will override any specified in a config file. 51 | # Prefix the list here with "+" to use these queries and those in the config file. 52 | # queries: ./path/to/local/query, your-org/your-repo/queries@main 53 | 54 | # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). 55 | # If this step fails, then you should remove it and run the build manually (see below) 56 | - name: Autobuild 57 | uses: github/codeql-action/autobuild@v2 58 | 59 | # ℹ️ Command-line programs to run using the OS shell. 60 | # 📚 https://git.io/JvXDl 61 | 62 | # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines 63 | # and modify them (or add more) to build your code if your project 64 | # uses a compiled language 65 | 66 | #- run: | 67 | # make bootstrap 68 | # make release 69 | 70 | - name: Perform CodeQL Analysis 71 | uses: github/codeql-action/analyze@v2 72 | -------------------------------------------------------------------------------- /.github/workflows/prbuild.yml: -------------------------------------------------------------------------------- 1 | name: "Do Not Commit Build in PR" 2 | on: 3 | pull_request: 4 | paths: 5 | - dist/** 6 | 7 | jobs: 8 | No-Build: 9 | runs-on: ubuntu-latest 10 | steps: 11 | - name: Do Not Commit Build in PR 12 | run: | 13 | echo Do not commit build folder in pull requests. 14 | exit 1 15 | -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- 1 | name: "Tests" 2 | on: 3 | pull_request: 4 | push: 5 | branches: 6 | - master 7 | 8 | jobs: 9 | Test: 10 | if: "!contains(github.event.head_commit.message, '[skip ci]')" 11 | strategy: 12 | matrix: 13 | os: [ubuntu-latest, macos-latest, windows-latest] 14 | version: [stable, beta, v1.50.0, v1.50.0-beta0] 15 | source: [action, npm] 16 | fail-fast: false 17 | runs-on: ${{ matrix.os }} 18 | steps: 19 | - name: Checkout Code 20 | uses: actions/checkout@v3 21 | - name: Install Dependencies 22 | run: npm ci 23 | - name: Build Action 24 | if: matrix.source == 'action' 25 | run: npm run build 26 | - name: Install Atom ${{ matrix.version }} with Action 27 | if: matrix.source == 'action' 28 | uses: ./ 29 | with: 30 | version: ${{ matrix.version }} 31 | - name: Install Atom ${{ matrix.version }} with NPM 32 | if: matrix.source == 'npm' 33 | run: node ./src/action.js ${{ matrix.version }} ${{ secrets.GITHUB_TOKEN }} 34 | - name: Don't download to repo directory 35 | run: git add . -N && git diff --name-only --exit-code -- . ':!dist' 36 | - name: Run Specs 37 | run: atom --test spec/${{ matrix.version }} 38 | 39 | Lint: 40 | if: "!contains(github.event.head_commit.message, '[skip ci]')" 41 | runs-on: ubuntu-latest 42 | steps: 43 | - name: Checkout Code 44 | uses: actions/checkout@v3 45 | - name: Install Dependencies 46 | run: npm ci 47 | - name: Lint ✨ 48 | run: npm run lint 49 | 50 | Release: 51 | needs: [Test, Lint] 52 | if: github.ref == 'refs/heads/master' 53 | runs-on: ubuntu-latest 54 | steps: 55 | - name: Checkout Code 56 | uses: actions/checkout@v3 57 | - name: Install Node 58 | uses: actions/setup-node@v3 59 | with: 60 | node-version: 'lts/*' 61 | - name: Install Dependencies 62 | run: npm ci 63 | - name: Build 🧱 64 | run: | 65 | npm run build 66 | git add dist 67 | if ! git diff --quiet -- dist ; then 68 | git config --global user.email "<>" 69 | git config --global user.name "GitHub Actions" 70 | git commit -m 'chore(build): 🧱 build [skip ci]' --no-verify -- dist 71 | fi 72 | - name: Realease 🎉 73 | uses: cycjimmy/semantic-release-action@v3 74 | id: semantic_release 75 | env: 76 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 77 | NPM_TOKEN: ${{ secrets.NPM_TOKEN }} 78 | - name: Push to Version Branch 79 | if: steps.semantic_release.outputs.new_release_published == 'true' 80 | uses: ad-m/github-push-action@master 81 | with: 82 | github_token: ${{ secrets.GITHUB_TOKEN }} 83 | branch: v${{ steps.semantic_release.outputs.new_release_major_version }} 84 | 85 | Skip: 86 | if: contains(github.event.head_commit.message, '[skip ci]') 87 | runs-on: ubuntu-latest 88 | steps: 89 | - name: Skip CI 🚫 90 | run: echo skip ci 91 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | 8 | # Runtime data 9 | pids 10 | *.pid 11 | *.seed 12 | *.pid.lock 13 | 14 | # Directory for instrumented libs generated by jscoverage/JSCover 15 | lib-cov 16 | 17 | # Coverage directory used by tools like istanbul 18 | coverage 19 | 20 | # nyc test coverage 21 | .nyc_output 22 | 23 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 24 | .grunt 25 | 26 | # Bower dependency directory (https://bower.io/) 27 | bower_components 28 | 29 | # node-waf configuration 30 | .lock-wscript 31 | 32 | # Compiled binary addons (https://nodejs.org/api/addons.html) 33 | build/Release 34 | 35 | # Dependency directories 36 | node_modules/ 37 | jspm_packages/ 38 | 39 | # TypeScript v1 declaration files 40 | typings/ 41 | 42 | # Optional npm cache directory 43 | .npm 44 | 45 | # Optional eslint cache 46 | .eslintcache 47 | 48 | # Optional REPL history 49 | .node_repl_history 50 | 51 | # Output of 'npm pack' 52 | *.tgz 53 | 54 | # Yarn Integrity file 55 | .yarn-integrity 56 | 57 | # dotenv environment variables file 58 | .env 59 | 60 | # next.js build output 61 | .next 62 | -------------------------------------------------------------------------------- /.husky/.gitignore: -------------------------------------------------------------------------------- 1 | _ 2 | -------------------------------------------------------------------------------- /.husky/commit-msg: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | . "$(dirname "$0")/_/husky.sh" 3 | 4 | npx --no-install commitlint --edit $1 5 | -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | . "$(dirname "$0")/_/husky.sh" 3 | 4 | git diff --staged --quiet -- dist || (echo "Please don't commit the 'dist' folder" && exit 1) 5 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | 3 | node_js: lts/* 4 | 5 | before_script: 6 | - node ./src/action.js ${ATOM_VERSION} 7 | - source ../env.sh 8 | 9 | script: 10 | - git diff --quiet 11 | - atom -v 12 | - apm -v 13 | - atom --test spec/${ATOM_VERSION} 14 | 15 | jobs: 16 | include: 17 | - stage: spec tests 👩🏽‍💻 18 | os: linux 19 | env: ATOM_VERSION=stable 20 | - os: linux 21 | env: ATOM_VERSION=beta 22 | - os: linux 23 | env: ATOM_VERSION=v1.50.0 24 | - os: linux 25 | env: ATOM_VERSION=v1.50.0-beta0 26 | - os: osx 27 | env: ATOM_VERSION=stable 28 | - os: osx 29 | env: ATOM_VERSION=beta 30 | - os: osx 31 | env: ATOM_VERSION=v1.50.0 32 | - os: osx 33 | env: ATOM_VERSION=v1.50.0-beta0 34 | 35 | notifications: 36 | email: 37 | on_success: never 38 | on_failure: change 39 | 40 | branches: 41 | only: 42 | - master 43 | 44 | git: 45 | depth: 3 46 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## [3.0.8](https://github.com/UziTech/action-setup-atom/compare/v3.0.7...v3.0.8) (2023-02-14) 2 | 3 | 4 | ### Bug Fixes 5 | 6 | * **deps:** update dependency @actions/core to ^1.10.0 ([#344](https://github.com/UziTech/action-setup-atom/issues/344)) ([8a9cdac](https://github.com/UziTech/action-setup-atom/commit/8a9cdac9057c500ee491ce560e22047721c28dc2)) 7 | * **deps:** update dependency @octokit/rest to ^19.0.7 ([#367](https://github.com/UziTech/action-setup-atom/issues/367)) ([f35d79e](https://github.com/UziTech/action-setup-atom/commit/f35d79eeb4a17f35f59e39125d1c2b5854df0706)) 8 | 9 | ## [3.0.7](https://github.com/UziTech/action-setup-atom/compare/v3.0.6...v3.0.7) (2022-10-14) 10 | 11 | 12 | ### Bug Fixes 13 | 14 | * **deps:** update dependency @octokit/rest to ^19.0.5 ([#346](https://github.com/UziTech/action-setup-atom/issues/346)) ([56ad8c6](https://github.com/UziTech/action-setup-atom/commit/56ad8c664feb8aea9533bc2a1185e79dc57f87fa)) 15 | 16 | ## [3.0.6](https://github.com/UziTech/action-setup-atom/compare/v3.0.5...v3.0.6) (2022-08-15) 17 | 18 | 19 | ### Bug Fixes 20 | 21 | * **deps:** update dependency @octokit/rest to ^19.0.4 ([#335](https://github.com/UziTech/action-setup-atom/issues/335)) ([92b10bb](https://github.com/UziTech/action-setup-atom/commit/92b10bbe6e6dec1ff0c9236cd7ca695d72ca946c)) 22 | 23 | ## [3.0.5](https://github.com/UziTech/action-setup-atom/compare/v3.0.4...v3.0.5) (2022-08-08) 24 | 25 | 26 | ### Bug Fixes 27 | 28 | * **deps:** update dependency @actions/core to ^1.9.1 ([#333](https://github.com/UziTech/action-setup-atom/issues/333)) ([a01f49d](https://github.com/UziTech/action-setup-atom/commit/a01f49dcfafbe6236335a4217872e685a3447cc7)) 29 | 30 | ## [3.0.4](https://github.com/UziTech/action-setup-atom/compare/v3.0.3...v3.0.4) (2022-07-09) 31 | 32 | 33 | ### Bug Fixes 34 | 35 | * **deps:** update dependency @octokit/rest to v19 ([#329](https://github.com/UziTech/action-setup-atom/issues/329)) ([136ad42](https://github.com/UziTech/action-setup-atom/commit/136ad42f84ff0aa3ecc60460ffdfe28c859755d3)) 36 | 37 | ## [3.0.3](https://github.com/UziTech/action-setup-atom/compare/v3.0.2...v3.0.3) (2022-05-14) 38 | 39 | 40 | ### Bug Fixes 41 | 42 | * **deps:** update dependency @actions/core to ^1.8.2 ([37d0f4e](https://github.com/UziTech/action-setup-atom/commit/37d0f4ee93a92d3808651cea6cd97bb3604be049)) 43 | * **deps:** update dependency @actions/tool-cache to ^2.0.1 ([fa641bd](https://github.com/UziTech/action-setup-atom/commit/fa641bde337e2a20500ebbc9be685463dc2f9894)) 44 | 45 | ## [3.0.2](https://github.com/UziTech/action-setup-atom/compare/v3.0.1...v3.0.2) (2022-05-13) 46 | 47 | 48 | ### Bug Fixes 49 | 50 | * **deps:** update dependency @actions/core to ^1.8.1 ([989cd9a](https://github.com/UziTech/action-setup-atom/commit/989cd9ad567a66896e00220ebce5c7c5b37d7617)) 51 | * **deps:** update dependency @actions/tool-cache to v2 ([5bbc3f5](https://github.com/UziTech/action-setup-atom/commit/5bbc3f5d68dc82c97302bb65986d5f4b0c2caadb)) 52 | 53 | ## [3.0.1](https://github.com/UziTech/action-setup-atom/compare/v3.0.0...v3.0.1) (2022-04-26) 54 | 55 | 56 | ### Bug Fixes 57 | 58 | * **deps:** update dependency @actions/core to ^1.7.0 ([f965b62](https://github.com/UziTech/action-setup-atom/commit/f965b621f31973af70a8ef46a4f5051c79a3db0e)) 59 | 60 | # [3.0.0](https://github.com/UziTech/action-setup-atom/compare/v2.0.9...v3.0.0) (2022-04-21) 61 | 62 | 63 | ### Bug Fixes 64 | 65 | * add token as npx argument ([a4b222d](https://github.com/UziTech/action-setup-atom/commit/a4b222da63b45260b307f54679729369a075da21)) 66 | * add token input ([0c74667](https://github.com/UziTech/action-setup-atom/commit/0c746671282815787c48b45603b44e922e4daf86)) 67 | * find channel by release version ([13b4008](https://github.com/UziTech/action-setup-atom/commit/13b400833022f7708e383fdcdb0e411fb9787e14)) 68 | 69 | 70 | ### BREAKING CHANGES 71 | 72 | * token is second argument and folder moved to third argument 73 | * dev and nightly channels no longer available. 74 | 75 | ## [2.0.9](https://github.com/UziTech/action-setup-atom/compare/v2.0.8...v2.0.9) (2022-03-18) 76 | 77 | 78 | ### Bug Fixes 79 | 80 | * **deps:** update dependency @actions/exec to ^1.1.1 ([b52ab35](https://github.com/UziTech/action-setup-atom/commit/b52ab35387bbe43256f079d604e6105043d17aa3)) 81 | * **deps:** update dependency @actions/tool-cache to ^1.7.2 ([dc22c63](https://github.com/UziTech/action-setup-atom/commit/dc22c63119c4b1fc5b67aa2bbf2699be8d0334c3)) 82 | 83 | ## [2.0.8](https://github.com/UziTech/action-setup-atom/compare/v2.0.7...v2.0.8) (2021-09-28) 84 | 85 | 86 | ### Bug Fixes 87 | 88 | * **deps:** update dependency @actions/core to ^1.6.0 ([fccd306](https://github.com/UziTech/action-setup-atom/commit/fccd30647b8b120cdfaafd04b48fed14afee91b7)) 89 | 90 | ## [2.0.7](https://github.com/UziTech/action-setup-atom/compare/v2.0.6...v2.0.7) (2021-08-20) 91 | 92 | 93 | ### Bug Fixes 94 | 95 | * **deps:** update dependency @actions/core to ^1.5.0 ([dcf6b2b](https://github.com/UziTech/action-setup-atom/commit/dcf6b2b1a5c4465b06ad3ef1a22f132eb853a43a)) 96 | 97 | ## [2.0.6](https://github.com/UziTech/action-setup-atom/compare/v2.0.5...v2.0.6) (2021-06-07) 98 | 99 | 100 | ### Bug Fixes 101 | 102 | * **deps:** update dependency @actions/tool-cache to ^1.7.1 ([aa2b04c](https://github.com/UziTech/action-setup-atom/commit/aa2b04cc6c0bec425ae7bd9ca7734b59b3724cfe)) 103 | 104 | ## [2.0.5](https://github.com/UziTech/action-setup-atom/compare/v2.0.4...v2.0.5) (2021-06-07) 105 | 106 | 107 | ### Bug Fixes 108 | 109 | * **deps:** update dependency @actions/exec to ^1.1.0 ([4f89977](https://github.com/UziTech/action-setup-atom/commit/4f89977dd8ee3b038aa134e7d67aeee2de6c83e1)) 110 | 111 | ## [2.0.4](https://github.com/UziTech/action-setup-atom/compare/v2.0.3...v2.0.4) (2021-05-27) 112 | 113 | 114 | ### Bug Fixes 115 | 116 | * **deps:** update dependency @actions/tool-cache to ^1.7.0 ([#213](https://github.com/UziTech/action-setup-atom/issues/213)) ([d415b2b](https://github.com/UziTech/action-setup-atom/commit/d415b2b6d8721714ae8b90eb3ec46597cc1790d9)) 117 | 118 | ## [2.0.3](https://github.com/UziTech/action-setup-atom/compare/v2.0.2...v2.0.3) (2021-04-15) 119 | 120 | 121 | ### Bug Fixes 122 | 123 | * add shebang to binary for npx ([72bce8c](https://github.com/UziTech/action-setup-atom/commit/72bce8c663327a4b0a23d593193b5518cf15b8b3)) 124 | 125 | ## [2.0.2](https://github.com/UziTech/action-setup-atom/compare/v2.0.1...v2.0.2) (2021-04-13) 126 | 127 | 128 | ### Bug Fixes 129 | 130 | * use core log methods instead of console ([870ead6](https://github.com/UziTech/action-setup-atom/commit/870ead63a2ac4ba7edc59e42b79b5653de16a276)) 131 | 132 | ## [2.0.1](https://github.com/UziTech/action-setup-atom/compare/v2.0.0...v2.0.1) (2021-04-12) 133 | 134 | 135 | ### Bug Fixes 136 | 137 | * remove shebang ([d845cc6](https://github.com/UziTech/action-setup-atom/commit/d845cc6906c86d8895046c20c960f626b2365067)) 138 | 139 | # [2.0.0](https://github.com/UziTech/action-setup-atom/compare/v1.1.13...v2.0.0) (2021-04-12) 140 | 141 | 142 | ### Features 143 | 144 | * allow selecting specific version ([5224667](https://github.com/UziTech/action-setup-atom/commit/52246677edfc71493daa4336c9c4f0f6b5dbebf7)) 145 | 146 | 147 | ### BREAKING CHANGES 148 | 149 | * deprecate `channel` use `version` instead. 150 | 151 | ## [1.1.13](https://github.com/UziTech/action-setup-atom/compare/v1.1.12...v1.1.13) (2021-04-10) 152 | 153 | 154 | ### Bug Fixes 155 | 156 | * print versions ([#192](https://github.com/UziTech/action-setup-atom/issues/192)) ([ba29773](https://github.com/UziTech/action-setup-atom/commit/ba29773411dedb449d4314fe907e9998856b732f)) 157 | 158 | ## [1.1.12](https://github.com/UziTech/action-setup-atom/compare/v1.1.11...v1.1.12) (2020-11-14) 159 | 160 | 161 | ### Bug Fixes 162 | 163 | * **deps:** update dependency @actions/tool-cache to ^1.6.1 ([af097d7](https://github.com/UziTech/action-setup-atom/commit/af097d7456adebc16dec44e3cde8b4fd52b1191b)) 164 | 165 | ## [1.1.11](https://github.com/UziTech/action-setup-atom/compare/v1.1.10...v1.1.11) (2020-09-23) 166 | 167 | 168 | ### Bug Fixes 169 | 170 | * **deps:** update dependency @actions/core to ^1.2.6 ([851eced](https://github.com/UziTech/action-setup-atom/commit/851ecede2e12eb31f5c13cbd9bd55a24c3a2930a)) 171 | 172 | ## [1.1.10](https://github.com/UziTech/action-setup-atom/compare/v1.1.9...v1.1.10) (2020-08-26) 173 | 174 | 175 | ### Bug Fixes 176 | 177 | * **deps:** update dependency @actions/core to ^1.2.5 ([1317050](https://github.com/UziTech/action-setup-atom/commit/1317050b255c041815e478825e54f6b93c7b5121)) 178 | 179 | ## [1.1.9](https://github.com/UziTech/action-setup-atom/compare/v1.1.8...v1.1.9) (2020-07-16) 180 | 181 | 182 | ### Bug Fixes 183 | 184 | * **deps:** update dependency @actions/tool-cache to ^1.6.0 ([8579bda](https://github.com/UziTech/action-setup-atom/commit/8579bdacc359821ccb57fca498aef37052ad2a1f)) 185 | 186 | ## [1.1.8](https://github.com/UziTech/action-setup-atom/compare/v1.1.7...v1.1.8) (2020-05-24) 187 | 188 | 189 | ### Bug Fixes 190 | 191 | * **deps:** update dependency @actions/tool-cache to ^1.5.5 ([42bf2dd](https://github.com/UziTech/action-setup-atom/commit/42bf2dd4cd60006d2240824161cbe20005deca31)) 192 | 193 | ## [1.1.7](https://github.com/UziTech/action-setup-atom/compare/v1.1.6...v1.1.7) (2020-05-13) 194 | 195 | 196 | ### Bug Fixes 197 | 198 | * **deps:** update dependency @actions/tool-cache to ^1.3.5 ([5a07e49](https://github.com/UziTech/action-setup-atom/commit/5a07e49e6a7f4bb9af488b95df2226b4dbc6431b)) 199 | 200 | ## [1.1.6](https://github.com/UziTech/action-setup-atom/compare/v1.1.5...v1.1.6) (2020-05-01) 201 | 202 | 203 | ### Bug Fixes 204 | 205 | * **release:** fix release ([60e5005](https://github.com/UziTech/action-setup-atom/commit/60e5005dee1c9bb903eebab6ea13b80f68e906db)) 206 | 207 | ## [1.1.5](https://github.com/UziTech/action-setup-atom/compare/v1.1.4...v1.1.5) (2020-04-30) 208 | 209 | 210 | ### Bug Fixes 211 | 212 | * **deps:** update dependency @actions/core to ^1.2.4 ([d70a23b](https://github.com/UziTech/action-setup-atom/commit/d70a23b0f1a575464196f637ba398465dd6ee27e)) 213 | * **deps:** update dependency @actions/exec to ^1.0.4 ([be735e2](https://github.com/UziTech/action-setup-atom/commit/be735e284c95f99a12825233d861a56164f0ddc0)) 214 | 215 | ## [1.1.4](https://github.com/UziTech/action-setup-atom/compare/v1.1.3...v1.1.4) (2020-04-24) 216 | 217 | 218 | ### Bug Fixes 219 | 220 | * **deps:** update dependency @actions/tool-cache to ^1.3.4 ([a56af93](https://github.com/UziTech/action-setup-atom/commit/a56af938810a88a8f13e750af213c46095a0573f)) 221 | 222 | ## [1.1.3](https://github.com/UziTech/action-setup-atom/compare/v1.1.2...v1.1.3) (2020-03-09) 223 | 224 | 225 | ### Bug Fixes 226 | 227 | * **deps:** update dependency @actions/tool-cache to ^1.3.3 ([cab26f3](https://github.com/UziTech/action-setup-atom/commit/cab26f39a1a2e3f95e00408851d8a40d27169096)) 228 | 229 | ## [1.1.2](https://github.com/UziTech/action-setup-atom/compare/v1.1.1...v1.1.2) (2020-03-06) 230 | 231 | 232 | ### Bug Fixes 233 | 234 | * **deps:** update dependency @actions/tool-cache to ^1.3.2 ([8981e0a](https://github.com/UziTech/action-setup-atom/commit/8981e0a961747675520f475c1ac7c4095969dda9)) 235 | 236 | ## [1.1.1](https://github.com/UziTech/action-setup-atom/compare/v1.1.0...v1.1.1) (2020-03-02) 237 | 238 | 239 | ### Bug Fixes 240 | 241 | * **deps:** update dependency @actions/core to ^1.2.3 ([b1909fb](https://github.com/UziTech/action-setup-atom/commit/b1909fb704d2677cff5338f66d4654eb4f4903cb)) 242 | 243 | # [1.1.0](https://github.com/UziTech/action-setup-atom/compare/v1.0.5...v1.1.0) (2020-01-25) 244 | 245 | 246 | ### Features 247 | 248 | * add npm package `setup-atom` ([8aeb087](https://github.com/UziTech/action-setup-atom/commit/8aeb087043f88ce52ea72ade9c4e3c0c6b0ecdb3)) 249 | 250 | ## [1.0.5](https://github.com/UziTech/action-setup-atom/compare/v1.0.4...v1.0.5) (2020-01-24) 251 | 252 | 253 | ### Bug Fixes 254 | 255 | * **deps:** update deps ([b84f236](https://github.com/UziTech/action-setup-atom/commit/b84f2361b6781a60d4a2d6681d2e61a388d4f792)) 256 | 257 | ## [1.0.4](https://github.com/UziTech/action-setup-atom/compare/v1.0.3...v1.0.4) (2020-01-15) 258 | 259 | 260 | ### Bug Fixes 261 | 262 | * add +extension RANDR to linux setup ([47eb29a](https://github.com/UziTech/action-setup-atom/commit/47eb29af22b18e770c0b69fa41deb87d9a88aa72)) 263 | 264 | ## [1.0.3](https://github.com/UziTech/action-setup-atom/compare/v1.0.2...v1.0.3) (2020-01-10) 265 | 266 | 267 | ### Bug Fixes 268 | 269 | * use extractZip ([#3](https://github.com/UziTech/action-setup-atom/issues/3)) ([a19f3b0](https://github.com/UziTech/action-setup-atom/commit/a19f3b048d3407d1eae3336049fac221eaa0e5b2)) 270 | * **deps:** update deps ([95cf466](https://github.com/UziTech/action-setup-atom/commit/95cf4669bdbeb96925f5a2fa6c7ab93b0c20d665)) 271 | 272 | ## [1.0.2](https://github.com/UziTech/action-setup-atom/compare/v1.0.1...v1.0.2) (2019-12-09) 273 | 274 | 275 | ### Bug Fixes 276 | 277 | * **deps:** update dependency @actions/exec to ^1.0.2 ([7f8142a](https://github.com/UziTech/action-setup-atom/commit/7f8142a403b23feae89aaa47da81e808d445a918)) 278 | * **deps:** update dependency @actions/exec to ^1.0.2 ([#14](https://github.com/UziTech/action-setup-atom/issues/14)) ([60a2905](https://github.com/UziTech/action-setup-atom/commit/60a2905086e7be26dc60e1df05a41e8d999e258f)) 279 | 280 | ## [1.0.1](https://github.com/UziTech/action-setup-atom/compare/v1.0.0...v1.0.1) (2019-11-16) 281 | 282 | 283 | ### Bug Fixes 284 | 285 | * test semantic-release ([b39d9ec](https://github.com/UziTech/action-setup-atom/commit/b39d9ec3f09320bc18681958ebc202ae72873639)) 286 | * **ci:** use semantic-release ([9c9fba5](https://github.com/UziTech/action-setup-atom/commit/9c9fba591748a24f99efedd6b5705adef79a1b9d)) 287 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 Tony Brix 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | [![GitHub Actions Status](https://github.com/UziTech/action-setup-atom/workflows/Tests/badge.svg?branch=master)](https://github.com/UziTech/action-setup-atom/actions) 2 | [![Travis-CI Status](https://travis-ci.com/UziTech/action-setup-atom.svg?branch=master)](https://travis-ci.com/UziTech/action-setup-atom) 3 | [![AppVeyor Status](https://ci.appveyor.com/api/projects/status/b1jl4lp0ud99byfc/branch/master?svg=true)](https://ci.appveyor.com/project/UziTech/action-setup-atom/branch/master) 4 | 5 | # Setup Atom and APM 6 | 7 | Downloads Atom and add `atom` and `apm` to the `PATH` 8 | 9 | This may be used as an [action](#github-action) in GitHub Actions or run with `npx setup-atom` as an [npm package](#npm-package) in GitHub Actions, Travis-CI, and AppVeyor. (It might work in other CI environments but it is only tested in those environments). 10 | 11 | ## GitHub Action 12 | 13 | ### Inputs 14 | 15 | #### `version` 16 | 17 | The version to test. Default `stable`. 18 | 19 | Possible values: `stable`, `beta`, Any Atom [release](https://github.com/atom/atom/releases) tag >= `v1.0.0` (e.g. `v1.50.0` or `v1.50.0-beta0`) 20 | 21 | #### `token` 22 | 23 | A GitHub token with read permission. Default `secrets.GITHUB_TOKEN`. 24 | 25 | The token is used to search Atom releases to find the latest `stable` and `beta` versions. 26 | 27 | ### Example usage 28 | 29 | ```yml 30 | uses: UziTech/action-setup-atom@v3 31 | with: 32 | version: 'beta' 33 | ``` 34 | 35 | ### Full Example 36 | 37 | This example runs tests against Atom stable and beta on Linux, Windows, and MacOS. 38 | 39 | ```yml 40 | jobs: 41 | Test: 42 | strategy: 43 | matrix: 44 | os: [ubuntu-latest, macos-latest, windows-latest] 45 | version: [stable, beta] 46 | runs-on: ${{ matrix.os }} 47 | steps: 48 | - uses: actions/checkout@v2 49 | - uses: UziTech/action-setup-atom@v3 50 | with: 51 | version: ${{ matrix.version }} 52 | - name: Atom version 53 | run: atom -v 54 | - name: APM version 55 | run: apm -v 56 | - name: Install dependencies 57 | run: apm ci 58 | - name: Run tests 🧪 59 | run: atom --test spec 60 | ``` 61 | 62 | ## npm package 63 | 64 | `npx setup-atom [ATOM_VERSION] [DOWNLOAD_FOLDER]` 65 | 66 | ### Examples 67 | 68 | #### GitHub Action 69 | 70 | ```yml 71 | jobs: 72 | Test: 73 | strategy: 74 | matrix: 75 | os: [ubuntu-latest, macos-latest, windows-latest] 76 | version: [stable, beta] 77 | runs-on: ${{ matrix.os }} 78 | steps: 79 | - uses: actions/checkout@v2 80 | - name: Download Atom 81 | - run: npx setup-atom ${{ matrix.version }} 82 | - name: Atom version 83 | run: atom -v 84 | - name: APM version 85 | run: apm -v 86 | - name: Install dependencies 87 | run: apm ci 88 | - name: Run tests 🧪 89 | run: atom --test spec 90 | ``` 91 | 92 | #### Travis-CI 93 | 94 | Travis CI doesn't persist the `PATH` between scripts so `setup-atom` writes to a file `../env.sh` which can be used to export the variables with `source ../env.sh`. If anyone knows a way around this a PR would be appreciated. 😉👍 95 | 96 | see https://github.com/travis-ci/travis-ci/issues/7472 97 | 98 | ```yml 99 | before_script: 100 | - npx setup-atom ${ATOM_VERSION} 101 | - source ../env.sh # This is needed to persist the PATH between steps 102 | 103 | script: 104 | - apm ci 105 | - atom --test spec 106 | 107 | jobs: 108 | include: 109 | - stage: spec tests 👩🏽‍💻 110 | os: linux 111 | env: ATOM_VERSION=stable 112 | - os: linux 113 | env: ATOM_VERSION=beta 114 | - os: osx 115 | env: ATOM_VERSION=stable 116 | - os: osx 117 | env: ATOM_VERSION=beta 118 | ``` 119 | 120 | #### AppVeyor 121 | 122 | ```yml 123 | environment: 124 | matrix: 125 | - ATOM_VERSION: stable 126 | - ATOM_VERSION: beta 127 | 128 | install: 129 | - ps: Install-Product node lts 130 | - npm ci 131 | 132 | before_build: 133 | - npx setup-atom %ATOM_VERSION% 134 | 135 | build_script: 136 | - apm ci 137 | - atom --test spec 138 | ``` 139 | -------------------------------------------------------------------------------- /action.yml: -------------------------------------------------------------------------------- 1 | name: 'Setup Atom' 2 | description: 'Setup Atom and APM' 3 | inputs: 4 | version: 5 | description: 'Version, defaults to "stable"' 6 | required: false 7 | default: 'stable' 8 | token: 9 | description: 'GitHub token with read permission for finding stable and beta versions, defaults to secrets.GITHUB_TOKEN' 10 | required: false 11 | default: ${{ github.token }} 12 | runs: 13 | using: 'node16' 14 | main: 'dist/index.js' 15 | branding: 16 | icon: 'code' 17 | color: 'green' 18 | -------------------------------------------------------------------------------- /appveyor.yml: -------------------------------------------------------------------------------- 1 | environment: 2 | matrix: 3 | - ATOM_VERSION: stable 4 | - ATOM_VERSION: beta 5 | - ATOM_VERSION: v1.50.0 6 | - ATOM_VERSION: v1.50.0-beta0 7 | 8 | install: 9 | - ps: Install-Product node lts 10 | - npm ci 11 | 12 | before_build: 13 | - node ./src/action.js %ATOM_VERSION% 14 | 15 | build_script: 16 | - git diff --quiet 17 | - atom -v 18 | - apm -v 19 | - atom --test spec/%ATOM_VERSION% 20 | 21 | branches: 22 | only: 23 | - master 24 | 25 | version: "{build}" 26 | platform: x64 27 | clone_depth: 3 28 | skip_tags: true 29 | test: off 30 | deploy: off 31 | -------------------------------------------------------------------------------- /commitlint.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "extends": [ 3 | "@commitlint/config-conventional", 4 | ], 5 | }; 6 | -------------------------------------------------------------------------------- /dist/license.txt: -------------------------------------------------------------------------------- 1 | @actions/core 2 | MIT 3 | The MIT License (MIT) 4 | 5 | Copyright 2019 GitHub 6 | 7 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 8 | 9 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 10 | 11 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 12 | 13 | @actions/exec 14 | MIT 15 | The MIT License (MIT) 16 | 17 | Copyright 2019 GitHub 18 | 19 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 20 | 21 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 22 | 23 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | 25 | @actions/http-client 26 | MIT 27 | Actions Http Client for Node.js 28 | 29 | Copyright (c) GitHub, Inc. 30 | 31 | All rights reserved. 32 | 33 | MIT License 34 | 35 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and 36 | associated documentation files (the "Software"), to deal in the Software without restriction, 37 | including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, 38 | and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, 39 | subject to the following conditions: 40 | 41 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 42 | 43 | THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT 44 | LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN 45 | NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 46 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 47 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 48 | 49 | 50 | @actions/io 51 | MIT 52 | The MIT License (MIT) 53 | 54 | Copyright 2019 GitHub 55 | 56 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 57 | 58 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 59 | 60 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 61 | 62 | @actions/tool-cache 63 | MIT 64 | The MIT License (MIT) 65 | 66 | Copyright 2019 GitHub 67 | 68 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 69 | 70 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 71 | 72 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 73 | 74 | @octokit/auth-token 75 | MIT 76 | The MIT License 77 | 78 | Copyright (c) 2019 Octokit contributors 79 | 80 | Permission is hereby granted, free of charge, to any person obtaining a copy 81 | of this software and associated documentation files (the "Software"), to deal 82 | in the Software without restriction, including without limitation the rights 83 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 84 | copies of the Software, and to permit persons to whom the Software is 85 | furnished to do so, subject to the following conditions: 86 | 87 | The above copyright notice and this permission notice shall be included in 88 | all copies or substantial portions of the Software. 89 | 90 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 91 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 92 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 93 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 94 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 95 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 96 | THE SOFTWARE. 97 | 98 | 99 | @octokit/core 100 | MIT 101 | The MIT License 102 | 103 | Copyright (c) 2019 Octokit contributors 104 | 105 | Permission is hereby granted, free of charge, to any person obtaining a copy 106 | of this software and associated documentation files (the "Software"), to deal 107 | in the Software without restriction, including without limitation the rights 108 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 109 | copies of the Software, and to permit persons to whom the Software is 110 | furnished to do so, subject to the following conditions: 111 | 112 | The above copyright notice and this permission notice shall be included in 113 | all copies or substantial portions of the Software. 114 | 115 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 116 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 117 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 118 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 119 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 120 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 121 | THE SOFTWARE. 122 | 123 | 124 | @octokit/endpoint 125 | MIT 126 | The MIT License 127 | 128 | Copyright (c) 2018 Octokit contributors 129 | 130 | Permission is hereby granted, free of charge, to any person obtaining a copy 131 | of this software and associated documentation files (the "Software"), to deal 132 | in the Software without restriction, including without limitation the rights 133 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 134 | copies of the Software, and to permit persons to whom the Software is 135 | furnished to do so, subject to the following conditions: 136 | 137 | The above copyright notice and this permission notice shall be included in 138 | all copies or substantial portions of the Software. 139 | 140 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 141 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 142 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 143 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 144 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 145 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 146 | THE SOFTWARE. 147 | 148 | 149 | @octokit/graphql 150 | MIT 151 | The MIT License 152 | 153 | Copyright (c) 2018 Octokit contributors 154 | 155 | Permission is hereby granted, free of charge, to any person obtaining a copy 156 | of this software and associated documentation files (the "Software"), to deal 157 | in the Software without restriction, including without limitation the rights 158 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 159 | copies of the Software, and to permit persons to whom the Software is 160 | furnished to do so, subject to the following conditions: 161 | 162 | The above copyright notice and this permission notice shall be included in 163 | all copies or substantial portions of the Software. 164 | 165 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 166 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 167 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 168 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 169 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 170 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 171 | THE SOFTWARE. 172 | 173 | 174 | @octokit/plugin-paginate-rest 175 | MIT 176 | MIT License Copyright (c) 2019 Octokit contributors 177 | 178 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 179 | 180 | The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software. 181 | 182 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 183 | 184 | 185 | @octokit/plugin-request-log 186 | MIT 187 | MIT License Copyright (c) 2020 Octokit contributors 188 | 189 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 190 | 191 | The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software. 192 | 193 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 194 | 195 | 196 | @octokit/plugin-rest-endpoint-methods 197 | MIT 198 | MIT License Copyright (c) 2019 Octokit contributors 199 | 200 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 201 | 202 | The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software. 203 | 204 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 205 | 206 | 207 | @octokit/request 208 | MIT 209 | The MIT License 210 | 211 | Copyright (c) 2018 Octokit contributors 212 | 213 | Permission is hereby granted, free of charge, to any person obtaining a copy 214 | of this software and associated documentation files (the "Software"), to deal 215 | in the Software without restriction, including without limitation the rights 216 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 217 | copies of the Software, and to permit persons to whom the Software is 218 | furnished to do so, subject to the following conditions: 219 | 220 | The above copyright notice and this permission notice shall be included in 221 | all copies or substantial portions of the Software. 222 | 223 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 224 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 225 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 226 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 227 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 228 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 229 | THE SOFTWARE. 230 | 231 | 232 | @octokit/request-error 233 | MIT 234 | The MIT License 235 | 236 | Copyright (c) 2019 Octokit contributors 237 | 238 | Permission is hereby granted, free of charge, to any person obtaining a copy 239 | of this software and associated documentation files (the "Software"), to deal 240 | in the Software without restriction, including without limitation the rights 241 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 242 | copies of the Software, and to permit persons to whom the Software is 243 | furnished to do so, subject to the following conditions: 244 | 245 | The above copyright notice and this permission notice shall be included in 246 | all copies or substantial portions of the Software. 247 | 248 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 249 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 250 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 251 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 252 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 253 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 254 | THE SOFTWARE. 255 | 256 | 257 | @octokit/rest 258 | MIT 259 | The MIT License 260 | 261 | Copyright (c) 2012 Cloud9 IDE, Inc. (Mike de Boer) 262 | Copyright (c) 2017-2018 Octokit contributors 263 | 264 | Permission is hereby granted, free of charge, to any person obtaining a copy 265 | of this software and associated documentation files (the "Software"), to deal 266 | in the Software without restriction, including without limitation the rights 267 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 268 | copies of the Software, and to permit persons to whom the Software is 269 | furnished to do so, subject to the following conditions: 270 | 271 | The above copyright notice and this permission notice shall be included in 272 | all copies or substantial portions of the Software. 273 | 274 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 275 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 276 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 277 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 278 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 279 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 280 | THE SOFTWARE. 281 | 282 | 283 | @vercel/ncc 284 | MIT 285 | Copyright 2018 ZEIT, Inc. 286 | 287 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 288 | 289 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 290 | 291 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 292 | 293 | before-after-hook 294 | Apache-2.0 295 | Apache License 296 | Version 2.0, January 2004 297 | http://www.apache.org/licenses/ 298 | 299 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 300 | 301 | 1. Definitions. 302 | 303 | "License" shall mean the terms and conditions for use, reproduction, 304 | and distribution as defined by Sections 1 through 9 of this document. 305 | 306 | "Licensor" shall mean the copyright owner or entity authorized by 307 | the copyright owner that is granting the License. 308 | 309 | "Legal Entity" shall mean the union of the acting entity and all 310 | other entities that control, are controlled by, or are under common 311 | control with that entity. For the purposes of this definition, 312 | "control" means (i) the power, direct or indirect, to cause the 313 | direction or management of such entity, whether by contract or 314 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 315 | outstanding shares, or (iii) beneficial ownership of such entity. 316 | 317 | "You" (or "Your") shall mean an individual or Legal Entity 318 | exercising permissions granted by this License. 319 | 320 | "Source" form shall mean the preferred form for making modifications, 321 | including but not limited to software source code, documentation 322 | source, and configuration files. 323 | 324 | "Object" form shall mean any form resulting from mechanical 325 | transformation or translation of a Source form, including but 326 | not limited to compiled object code, generated documentation, 327 | and conversions to other media types. 328 | 329 | "Work" shall mean the work of authorship, whether in Source or 330 | Object form, made available under the License, as indicated by a 331 | copyright notice that is included in or attached to the work 332 | (an example is provided in the Appendix below). 333 | 334 | "Derivative Works" shall mean any work, whether in Source or Object 335 | form, that is based on (or derived from) the Work and for which the 336 | editorial revisions, annotations, elaborations, or other modifications 337 | represent, as a whole, an original work of authorship. For the purposes 338 | of this License, Derivative Works shall not include works that remain 339 | separable from, or merely link (or bind by name) to the interfaces of, 340 | the Work and Derivative Works thereof. 341 | 342 | "Contribution" shall mean any work of authorship, including 343 | the original version of the Work and any modifications or additions 344 | to that Work or Derivative Works thereof, that is intentionally 345 | submitted to Licensor for inclusion in the Work by the copyright owner 346 | or by an individual or Legal Entity authorized to submit on behalf of 347 | the copyright owner. For the purposes of this definition, "submitted" 348 | means any form of electronic, verbal, or written communication sent 349 | to the Licensor or its representatives, including but not limited to 350 | communication on electronic mailing lists, source code control systems, 351 | and issue tracking systems that are managed by, or on behalf of, the 352 | Licensor for the purpose of discussing and improving the Work, but 353 | excluding communication that is conspicuously marked or otherwise 354 | designated in writing by the copyright owner as "Not a Contribution." 355 | 356 | "Contributor" shall mean Licensor and any individual or Legal Entity 357 | on behalf of whom a Contribution has been received by Licensor and 358 | subsequently incorporated within the Work. 359 | 360 | 2. Grant of Copyright License. Subject to the terms and conditions of 361 | this License, each Contributor hereby grants to You a perpetual, 362 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 363 | copyright license to reproduce, prepare Derivative Works of, 364 | publicly display, publicly perform, sublicense, and distribute the 365 | Work and such Derivative Works in Source or Object form. 366 | 367 | 3. Grant of Patent License. Subject to the terms and conditions of 368 | this License, each Contributor hereby grants to You a perpetual, 369 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 370 | (except as stated in this section) patent license to make, have made, 371 | use, offer to sell, sell, import, and otherwise transfer the Work, 372 | where such license applies only to those patent claims licensable 373 | by such Contributor that are necessarily infringed by their 374 | Contribution(s) alone or by combination of their Contribution(s) 375 | with the Work to which such Contribution(s) was submitted. If You 376 | institute patent litigation against any entity (including a 377 | cross-claim or counterclaim in a lawsuit) alleging that the Work 378 | or a Contribution incorporated within the Work constitutes direct 379 | or contributory patent infringement, then any patent licenses 380 | granted to You under this License for that Work shall terminate 381 | as of the date such litigation is filed. 382 | 383 | 4. Redistribution. You may reproduce and distribute copies of the 384 | Work or Derivative Works thereof in any medium, with or without 385 | modifications, and in Source or Object form, provided that You 386 | meet the following conditions: 387 | 388 | (a) You must give any other recipients of the Work or 389 | Derivative Works a copy of this License; and 390 | 391 | (b) You must cause any modified files to carry prominent notices 392 | stating that You changed the files; and 393 | 394 | (c) You must retain, in the Source form of any Derivative Works 395 | that You distribute, all copyright, patent, trademark, and 396 | attribution notices from the Source form of the Work, 397 | excluding those notices that do not pertain to any part of 398 | the Derivative Works; and 399 | 400 | (d) If the Work includes a "NOTICE" text file as part of its 401 | distribution, then any Derivative Works that You distribute must 402 | include a readable copy of the attribution notices contained 403 | within such NOTICE file, excluding those notices that do not 404 | pertain to any part of the Derivative Works, in at least one 405 | of the following places: within a NOTICE text file distributed 406 | as part of the Derivative Works; within the Source form or 407 | documentation, if provided along with the Derivative Works; or, 408 | within a display generated by the Derivative Works, if and 409 | wherever such third-party notices normally appear. The contents 410 | of the NOTICE file are for informational purposes only and 411 | do not modify the License. You may add Your own attribution 412 | notices within Derivative Works that You distribute, alongside 413 | or as an addendum to the NOTICE text from the Work, provided 414 | that such additional attribution notices cannot be construed 415 | as modifying the License. 416 | 417 | You may add Your own copyright statement to Your modifications and 418 | may provide additional or different license terms and conditions 419 | for use, reproduction, or distribution of Your modifications, or 420 | for any such Derivative Works as a whole, provided Your use, 421 | reproduction, and distribution of the Work otherwise complies with 422 | the conditions stated in this License. 423 | 424 | 5. Submission of Contributions. Unless You explicitly state otherwise, 425 | any Contribution intentionally submitted for inclusion in the Work 426 | by You to the Licensor shall be under the terms and conditions of 427 | this License, without any additional terms or conditions. 428 | Notwithstanding the above, nothing herein shall supersede or modify 429 | the terms of any separate license agreement you may have executed 430 | with Licensor regarding such Contributions. 431 | 432 | 6. Trademarks. This License does not grant permission to use the trade 433 | names, trademarks, service marks, or product names of the Licensor, 434 | except as required for reasonable and customary use in describing the 435 | origin of the Work and reproducing the content of the NOTICE file. 436 | 437 | 7. Disclaimer of Warranty. Unless required by applicable law or 438 | agreed to in writing, Licensor provides the Work (and each 439 | Contributor provides its Contributions) on an "AS IS" BASIS, 440 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 441 | implied, including, without limitation, any warranties or conditions 442 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 443 | PARTICULAR PURPOSE. You are solely responsible for determining the 444 | appropriateness of using or redistributing the Work and assume any 445 | risks associated with Your exercise of permissions under this License. 446 | 447 | 8. Limitation of Liability. In no event and under no legal theory, 448 | whether in tort (including negligence), contract, or otherwise, 449 | unless required by applicable law (such as deliberate and grossly 450 | negligent acts) or agreed to in writing, shall any Contributor be 451 | liable to You for damages, including any direct, indirect, special, 452 | incidental, or consequential damages of any character arising as a 453 | result of this License or out of the use or inability to use the 454 | Work (including but not limited to damages for loss of goodwill, 455 | work stoppage, computer failure or malfunction, or any and all 456 | other commercial damages or losses), even if such Contributor 457 | has been advised of the possibility of such damages. 458 | 459 | 9. Accepting Warranty or Additional Liability. While redistributing 460 | the Work or Derivative Works thereof, You may choose to offer, 461 | and charge a fee for, acceptance of support, warranty, indemnity, 462 | or other liability obligations and/or rights consistent with this 463 | License. However, in accepting such obligations, You may act only 464 | on Your own behalf and on Your sole responsibility, not on behalf 465 | of any other Contributor, and only if You agree to indemnify, 466 | defend, and hold each Contributor harmless for any liability 467 | incurred by, or claims asserted against, such Contributor by reason 468 | of your accepting any such warranty or additional liability. 469 | 470 | END OF TERMS AND CONDITIONS 471 | 472 | APPENDIX: How to apply the Apache License to your work. 473 | 474 | To apply the Apache License to your work, attach the following 475 | boilerplate notice, with the fields enclosed by brackets "{}" 476 | replaced with your own identifying information. (Don't include 477 | the brackets!) The text should be enclosed in the appropriate 478 | comment syntax for the file format. We also recommend that a 479 | file or class name and description of purpose be included on the 480 | same "printed page" as the copyright notice for easier 481 | identification within third-party archives. 482 | 483 | Copyright 2018 Gregor Martynus and other contributors. 484 | 485 | Licensed under the Apache License, Version 2.0 (the "License"); 486 | you may not use this file except in compliance with the License. 487 | You may obtain a copy of the License at 488 | 489 | http://www.apache.org/licenses/LICENSE-2.0 490 | 491 | Unless required by applicable law or agreed to in writing, software 492 | distributed under the License is distributed on an "AS IS" BASIS, 493 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 494 | See the License for the specific language governing permissions and 495 | limitations under the License. 496 | 497 | 498 | deprecation 499 | ISC 500 | The ISC License 501 | 502 | Copyright (c) Gregor Martynus and contributors 503 | 504 | Permission to use, copy, modify, and/or distribute this software for any 505 | purpose with or without fee is hereby granted, provided that the above 506 | copyright notice and this permission notice appear in all copies. 507 | 508 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 509 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 510 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 511 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 512 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 513 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR 514 | IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 515 | 516 | 517 | is-plain-object 518 | MIT 519 | The MIT License (MIT) 520 | 521 | Copyright (c) 2014-2017, Jon Schlinkert. 522 | 523 | Permission is hereby granted, free of charge, to any person obtaining a copy 524 | of this software and associated documentation files (the "Software"), to deal 525 | in the Software without restriction, including without limitation the rights 526 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 527 | copies of the Software, and to permit persons to whom the Software is 528 | furnished to do so, subject to the following conditions: 529 | 530 | The above copyright notice and this permission notice shall be included in 531 | all copies or substantial portions of the Software. 532 | 533 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 534 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 535 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 536 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 537 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 538 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 539 | THE SOFTWARE. 540 | 541 | 542 | node-fetch 543 | MIT 544 | The MIT License (MIT) 545 | 546 | Copyright (c) 2016 David Frank 547 | 548 | Permission is hereby granted, free of charge, to any person obtaining a copy 549 | of this software and associated documentation files (the "Software"), to deal 550 | in the Software without restriction, including without limitation the rights 551 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 552 | copies of the Software, and to permit persons to whom the Software is 553 | furnished to do so, subject to the following conditions: 554 | 555 | The above copyright notice and this permission notice shall be included in all 556 | copies or substantial portions of the Software. 557 | 558 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 559 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 560 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 561 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 562 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 563 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 564 | SOFTWARE. 565 | 566 | 567 | 568 | once 569 | ISC 570 | The ISC License 571 | 572 | Copyright (c) Isaac Z. Schlueter and Contributors 573 | 574 | Permission to use, copy, modify, and/or distribute this software for any 575 | purpose with or without fee is hereby granted, provided that the above 576 | copyright notice and this permission notice appear in all copies. 577 | 578 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 579 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 580 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 581 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 582 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 583 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR 584 | IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 585 | 586 | 587 | semver 588 | ISC 589 | The ISC License 590 | 591 | Copyright (c) Isaac Z. Schlueter and Contributors 592 | 593 | Permission to use, copy, modify, and/or distribute this software for any 594 | purpose with or without fee is hereby granted, provided that the above 595 | copyright notice and this permission notice appear in all copies. 596 | 597 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 598 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 599 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 600 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 601 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 602 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR 603 | IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 604 | 605 | 606 | tr46 607 | MIT 608 | 609 | tunnel 610 | MIT 611 | The MIT License (MIT) 612 | 613 | Copyright (c) 2012 Koichi Kobayashi 614 | 615 | Permission is hereby granted, free of charge, to any person obtaining a copy 616 | of this software and associated documentation files (the "Software"), to deal 617 | in the Software without restriction, including without limitation the rights 618 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 619 | copies of the Software, and to permit persons to whom the Software is 620 | furnished to do so, subject to the following conditions: 621 | 622 | The above copyright notice and this permission notice shall be included in 623 | all copies or substantial portions of the Software. 624 | 625 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 626 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 627 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 628 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 629 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 630 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 631 | THE SOFTWARE. 632 | 633 | 634 | universal-user-agent 635 | ISC 636 | # [ISC License](https://spdx.org/licenses/ISC) 637 | 638 | Copyright (c) 2018, Gregor Martynus (https://github.com/gr2m) 639 | 640 | Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. 641 | 642 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 643 | 644 | 645 | uuid 646 | MIT 647 | The MIT License (MIT) 648 | 649 | Copyright (c) 2010-2020 Robert Kieffer and other contributors 650 | 651 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 652 | 653 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 654 | 655 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 656 | 657 | 658 | webidl-conversions 659 | BSD-2-Clause 660 | # The BSD 2-Clause License 661 | 662 | Copyright (c) 2014, Domenic Denicola 663 | All rights reserved. 664 | 665 | Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 666 | 667 | 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 668 | 669 | 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 670 | 671 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 672 | 673 | 674 | whatwg-url 675 | MIT 676 | The MIT License (MIT) 677 | 678 | Copyright (c) 2015–2016 Sebastian Mayr 679 | 680 | Permission is hereby granted, free of charge, to any person obtaining a copy 681 | of this software and associated documentation files (the "Software"), to deal 682 | in the Software without restriction, including without limitation the rights 683 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 684 | copies of the Software, and to permit persons to whom the Software is 685 | furnished to do so, subject to the following conditions: 686 | 687 | The above copyright notice and this permission notice shall be included in 688 | all copies or substantial portions of the Software. 689 | 690 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 691 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 692 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 693 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 694 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 695 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 696 | THE SOFTWARE. 697 | 698 | 699 | wrappy 700 | ISC 701 | The ISC License 702 | 703 | Copyright (c) Isaac Z. Schlueter and Contributors 704 | 705 | Permission to use, copy, modify, and/or distribute this software for any 706 | purpose with or without fee is hereby granted, provided that the above 707 | copyright notice and this permission notice appear in all copies. 708 | 709 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 710 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 711 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 712 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 713 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 714 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR 715 | IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 716 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "setup-atom", 3 | "version": "3.0.8", 4 | "description": "Setup Atom and APM", 5 | "main": "./src/setup-atom.js", 6 | "scripts": { 7 | "test": "npm run lint", 8 | "lint": "eslint .", 9 | "build": "ncc build src/action.js --license license.txt", 10 | "prepare": "husky install" 11 | }, 12 | "bin": "./src/bin.js", 13 | "files": [ 14 | "src/" 15 | ], 16 | "repository": { 17 | "type": "git", 18 | "url": "git+https://github.com/UziTech/action-setup-atom.git" 19 | }, 20 | "keywords": [ 21 | "GitHub", 22 | "Actions", 23 | "action", 24 | "setup", 25 | "atom", 26 | "apm" 27 | ], 28 | "author": "Tony Brix ", 29 | "license": "MIT", 30 | "bugs": { 31 | "url": "https://github.com/UziTech/action-setup-atom/issues" 32 | }, 33 | "homepage": "https://github.com/UziTech/action-setup-atom#readme", 34 | "dependencies": { 35 | "@actions/core": "^1.10.0", 36 | "@actions/exec": "^1.1.1", 37 | "@actions/tool-cache": "^2.0.1", 38 | "@octokit/rest": "^19.0.7" 39 | }, 40 | "devDependencies": { 41 | "@commitlint/cli": "^17.6.1", 42 | "@commitlint/config-conventional": "^17.6.1", 43 | "@semantic-release/changelog": "^6.0.3", 44 | "@semantic-release/commit-analyzer": "^9.0.2", 45 | "@semantic-release/git": "^10.0.1", 46 | "@semantic-release/github": "^8.0.7", 47 | "@semantic-release/npm": "^10.0.3", 48 | "@semantic-release/release-notes-generator": "^10.0.3", 49 | "@vercel/ncc": "^0.36.1", 50 | "eslint": "^8.38.0", 51 | "husky": "^8.0.3", 52 | "semantic-release": "^21.0.1" 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /release.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "plugins": [ 3 | "@semantic-release/commit-analyzer", 4 | "@semantic-release/release-notes-generator", 5 | "@semantic-release/changelog", 6 | "@semantic-release/npm", 7 | "@semantic-release/github", 8 | "@semantic-release/git", 9 | ], 10 | }; 11 | -------------------------------------------------------------------------------- /renovate.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": [ 3 | "config:base" 4 | ], 5 | "devDependencies": { 6 | "automerge": true, 7 | "commitMessageTopic": "devDependency {{depName}}" 8 | }, 9 | "rangeStrategy": "bump" 10 | } 11 | -------------------------------------------------------------------------------- /spec/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | env: { 3 | jasmine: true, 4 | }, 5 | globals: { 6 | atom: false, 7 | }, 8 | }; 9 | -------------------------------------------------------------------------------- /spec/beta/spec-spec.js: -------------------------------------------------------------------------------- 1 | describe("atom", () => { 2 | it("should be the correct channel", function () { 3 | expect(atom.getReleaseChannel()).toBe("beta"); 4 | }); 5 | }); 6 | -------------------------------------------------------------------------------- /spec/stable/spec-spec.js: -------------------------------------------------------------------------------- 1 | describe("atom", () => { 2 | it("should be the correct channel", function () { 3 | expect(atom.getReleaseChannel()).toBe("stable"); 4 | }); 5 | }); 6 | -------------------------------------------------------------------------------- /spec/v1.50.0-beta0/spec-spec.js: -------------------------------------------------------------------------------- 1 | describe("atom", () => { 2 | it("should be the correct channel", function () { 3 | expect(atom.appVersion).toBe("1.50.0-beta0"); 4 | }); 5 | }); 6 | -------------------------------------------------------------------------------- /spec/v1.50.0/spec-spec.js: -------------------------------------------------------------------------------- 1 | describe("atom", () => { 2 | it("should be the correct channel", function () { 3 | expect(atom.appVersion).toBe("1.50.0"); 4 | }); 5 | }); 6 | -------------------------------------------------------------------------------- /src/action.js: -------------------------------------------------------------------------------- 1 | const path = require("path"); 2 | if (!process.env.GITHUB_ACTIONS) { 3 | if (process.env.USERPROFILE) { 4 | process.env.RUNNER_TEMP = path.resolve(process.env.USERPROFILE, "./temp"); 5 | } else if (process.env.HOME) { 6 | process.env.RUNNER_TEMP = path.resolve(process.env.HOME, "./temp"); 7 | } else { 8 | process.env.RUNNER_TEMP = path.resolve("../temp"); 9 | } 10 | } 11 | const core = require("@actions/core"); 12 | const { 13 | downloadAtom, 14 | addToPath, 15 | printVersions, 16 | } = require("./setup-atom.js"); 17 | 18 | async function run() { 19 | try { 20 | const channel = (process.env.GITHUB_ACTIONS && core.getInput("channel").toLowerCase()); 21 | if (channel) { 22 | core.error("'channel' is deprecated. Please use 'version' instead."); 23 | } 24 | const version = channel || (process.env.GITHUB_ACTIONS && core.getInput("version").toLowerCase()) || process.argv[2] || "stable"; 25 | const token = (process.env.GITHUB_ACTIONS && core.getInput("token")) || process.argv[3] || ""; 26 | const folder = path.resolve(process.env.RUNNER_TEMP, process.argv[4] || "./atom"); 27 | core.info(`version: ${version}`); 28 | core.info(`folder: ${folder}`); 29 | 30 | await downloadAtom(version, folder, token); 31 | await addToPath(version, folder); 32 | await printVersions(); 33 | 34 | } catch (error) { 35 | if (process.env.GITHUB_ACTIONS) { 36 | core.setFailed(error.message); 37 | } else { 38 | core.error(error); 39 | process.exit(1); 40 | } 41 | } 42 | } 43 | 44 | run(); 45 | -------------------------------------------------------------------------------- /src/bin.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | require("./action.js"); 4 | -------------------------------------------------------------------------------- /src/setup-atom.js: -------------------------------------------------------------------------------- 1 | const path = require("path"); 2 | if (!process.env.GITHUB_ACTIONS) { 3 | if (process.env.USERPROFILE) { 4 | process.env.RUNNER_TEMP = path.resolve(process.env.USERPROFILE, "./temp"); 5 | } else if (process.env.HOME) { 6 | process.env.RUNNER_TEMP = path.resolve(process.env.HOME, "./temp"); 7 | } else { 8 | process.env.RUNNER_TEMP = path.resolve("../temp"); 9 | } 10 | } 11 | const tc = require("@actions/tool-cache"); 12 | const core = require("@actions/core"); 13 | const {exec} = require("@actions/exec"); 14 | const { Octokit } = require("@octokit/rest"); 15 | const {promisify} = require("util"); 16 | const cp = require("child_process"); 17 | const execAsync = promisify(cp.exec); 18 | const fs = require("fs"); 19 | const writeFileAsync = promisify(fs.writeFile); 20 | 21 | const CHANNELS = [ 22 | "stable", 23 | "beta", 24 | ]; 25 | 26 | const INVALID_CHANNELS = [ 27 | "nightly", 28 | "dev", 29 | ]; 30 | 31 | async function downloadAtom(version, folder, token) { 32 | if (typeof version !== "string") { 33 | version = "stable"; 34 | } 35 | if (typeof folder !== "string") { 36 | folder = path.resolve(process.env.RUNNER_TEMP, "./atom"); 37 | } 38 | if (typeof token !== "string") { 39 | token = ""; 40 | } 41 | switch (process.platform) { 42 | case "win32": { 43 | const downloadFile = await tc.downloadTool(await findUrl(version, token)); 44 | await tc.extractZip(downloadFile, folder); 45 | break; 46 | } 47 | case "darwin": { 48 | const downloadFile = await tc.downloadTool(await findUrl(version, token)); 49 | await tc.extractZip(downloadFile, folder); 50 | break; 51 | } 52 | default: { 53 | const downloadFile = await tc.downloadTool(await findUrl(version, token)); 54 | await exec("dpkg-deb", ["-x", downloadFile, folder]); 55 | break; 56 | } 57 | } 58 | } 59 | 60 | async function addToPath(version, folder) { 61 | switch (process.platform) { 62 | case "win32": { 63 | let atomfolder = "Atom"; 64 | if (CHANNELS.includes(version) && version !== "stable") { 65 | atomfolder += ` ${version[0].toUpperCase() + version.substring(1)}`; 66 | } else if (version.includes("-beta")) { 67 | atomfolder += " Beta"; 68 | } 69 | const atomPath = path.join(folder, atomfolder, "resources", "cli"); 70 | if (process.env.GITHUB_ACTIONS) { 71 | core.addPath(atomPath); 72 | } else { 73 | await exec("powershell", ["-Command", [ 74 | `[Environment]::SetEnvironmentVariable("PATH", "${atomPath};" + $env:PATH, "Machine")`, 75 | "Start-Sleep -s 10", 76 | "Restart-Computer", 77 | "Start-Sleep -s 10", 78 | ].join(";\n")]); 79 | } 80 | break; 81 | } 82 | case "darwin": { 83 | let atomfolder = "Atom"; 84 | if (CHANNELS.includes(version) && version !== "stable") { 85 | atomfolder += ` ${version[0].toUpperCase() + version.substring(1)}`; 86 | } else if (version.includes("-beta")) { 87 | atomfolder += " Beta"; 88 | } 89 | atomfolder += ".app"; 90 | const atomPath = path.join(folder, atomfolder, "Contents", "Resources", "app"); 91 | await exec("ln", ["-s", path.join(atomPath, "atom.sh"), path.join(atomPath, "atom")]); 92 | const apmPath = path.join(atomPath, "apm", "bin"); 93 | if (process.env.GITHUB_ACTIONS) { 94 | core.addPath(atomPath); 95 | core.addPath(apmPath); 96 | } else { 97 | await execAsync(`export "PATH=${atomPath}:${apmPath}:$PATH"`); 98 | await writeFileAsync("../env.sh", [ 99 | "#! /bin/bash", 100 | `export "PATH=${atomPath}:${apmPath}:$PATH"`, 101 | ].join("\n"), {mode: "777"}); 102 | } 103 | break; 104 | } 105 | default: { 106 | const display = ":99"; 107 | await exec(`/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- ${display} -ac -screen 0 1280x1024x16 +extension RANDR`); 108 | let atomfolder = "atom"; 109 | if (CHANNELS.includes(version) && version !== "stable") { 110 | atomfolder += `-${version}`; 111 | } else if (version.includes("-beta")) { 112 | atomfolder += "-beta"; 113 | } 114 | const atomPath = path.join(folder, "usr", "share", atomfolder); 115 | const apmPath = path.join(atomPath, "resources", "app", "apm", "bin"); 116 | if (process.env.GITHUB_ACTIONS) { 117 | await core.exportVariable("DISPLAY", display); 118 | core.addPath(atomPath); 119 | core.addPath(apmPath); 120 | } else { 121 | await execAsync(`export DISPLAY="${display}"`); 122 | await execAsync(`export "PATH=${atomPath}:${apmPath}:$PATH"`); 123 | await writeFileAsync("../env.sh", [ 124 | "#! /bin/bash", 125 | `export DISPLAY="${display}"`, 126 | `export "PATH=${atomPath}:${apmPath}:$PATH"`, 127 | ].join("\n"), {mode: "777"}); 128 | } 129 | break; 130 | } 131 | } 132 | } 133 | 134 | async function printVersions() { 135 | try { 136 | core.info((await execAsync("atom -v")).stdout); 137 | core.info((await execAsync("apm -v")).stdout); 138 | } catch(e) { 139 | core.info("Error printing versions:", e); 140 | } 141 | } 142 | 143 | async function findUrl(version, token) { 144 | if (INVALID_CHANNELS.includes(version)) { 145 | throw new Error(`'${version}' is not a valid version.`); 146 | } 147 | if (CHANNELS.includes(version)) { 148 | const octokit = new Octokit({auth: token}); 149 | const {data: releases} = await octokit.rest.repos.listReleases({ 150 | owner: "atom", 151 | repo: "atom", 152 | per_page: 100, 153 | }); 154 | let release; 155 | if (version === "stable") { 156 | release = releases.find(r => !r.draft && !r.prerelease); 157 | } else { 158 | release = releases.find(r => !r.draft && r.prerelease && r.tag_name.includes(version)); 159 | } 160 | if (release) { 161 | version = release.tag_name; 162 | } 163 | } 164 | 165 | switch (process.platform) { 166 | case "win32": { 167 | // atom-windows.zip 168 | return `https://github.com/atom/atom/releases/download/${version}/atom-windows.zip`; 169 | } 170 | case "darwin": { 171 | // atom-mac.zip 172 | return `https://github.com/atom/atom/releases/download/${version}/atom-mac.zip`; 173 | } 174 | default: { 175 | // atom-amd64.deb 176 | return `https://github.com/atom/atom/releases/download/${version}/atom-amd64.deb`; 177 | } 178 | } 179 | } 180 | 181 | module.exports = { 182 | downloadAtom, 183 | addToPath, 184 | printVersions, 185 | findUrl, 186 | }; 187 | --------------------------------------------------------------------------------