From 5c72c97cf833b7fdce6d9e7bdb352de595793589 Mon Sep 17 00:00:00 2001 From: Bsian Date: Sun, 15 Mar 2020 16:02:14 +0000 Subject: [PATCH] Consistency --- .github/workflows/publish.yaml | 78 +++++++++++++++++----------------- 1 file changed, 39 insertions(+), 39 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index e66d6a4a..afb0143a 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -8,12 +8,12 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - uses: actions/setup-node@v1 - with: - node-version: 12 - - name: Dep install and test - - run: | + - uses: actions/checkout@v1 + - uses: actions/setup-node@v1 + with: + node-version: 12 + - name: Dep install and test + run: | yarn install yarn test:publish env: @@ -23,41 +23,41 @@ jobs: needs: build runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - uses: actions/setup-node@v1 - with: - node-version: 12 - registry-url: https://registry.npmjs.org/ - - name: Dep install - run: yarn install - env: - CI: true - - name: Publish - run: npm publish - env: - NODE_AUTH_TOKEN: ${{ secrets.npm_token }} + - uses: actions/checkout@v1 + - uses: actions/setup-node@v1 + with: + node-version: 12 + registry-url: https://registry.npmjs.org/ + - name: Dep install + run: yarn install + env: + CI: true + - name: Publish + run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.npm_token }} publish-gpr: needs: build runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - uses: actions/setup-node@v1 - with: - node-version: 12 - registry-url: https://npm.pkg.github.com/ - scope: '@khaazz' - env: - NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} - - name: Dep install - run: yarn install - env: - CI: true - - name: Autoscope package - uses: khaazz/action-autoscope@master - - name: Configure .npmrc - run: echo registry=https://npm.pkg.github.com/Khaazz >> .npmrc - - name: Publish - run: npm publish - env: - NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} + - uses: actions/checkout@v1 + - uses: actions/setup-node@v1 + with: + node-version: 12 + registry-url: https://npm.pkg.github.com/ + scope: '@khaazz' + env: + NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} + - name: Dep install + run: yarn install + env: + CI: true + - name: Autoscope package + uses: khaazz/action-autoscope@master + - name: Configure .npmrc + run: echo registry=https://npm.pkg.github.com/Khaazz >> .npmrc + - name: Publish + run: npm publish + env: + NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}