|
1 | | -name: Deployment |
| 1 | +# name: Deployment |
2 | 2 |
|
3 | | -concurrency: production |
| 3 | +# concurrency: production |
4 | 4 |
|
5 | | -on: |
6 | | - # Allows you to run this workflow manually from the Actions tab |
7 | | - workflow_dispatch: |
| 5 | +# on: |
| 6 | +# # Allows you to run this workflow manually from the Actions tab |
| 7 | +# workflow_dispatch: |
8 | 8 |
|
9 | | -jobs: |
10 | | - deploy: |
11 | | - runs-on: ubuntu-latest |
12 | | - environment: production |
13 | | - steps: |
14 | | - - uses: actions/checkout@v3 |
15 | | - with: |
16 | | - fetch-depth: 0 # Fetch all history for all tags and branches |
17 | | - - name: read node version from the .nvmrc file |
18 | | - run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc) |
19 | | - shell: bash |
20 | | - id: nvmrc |
21 | | - - uses: actions/setup-node@v3 |
22 | | - with: |
23 | | - node-version: ${{steps.nvmrc.outputs.NODE_VERSION}} |
24 | | - # this line is required for the setup-node action to be able to run the npm publish below. |
25 | | - registry-url: 'https://registry.npmjs.org' |
26 | | - - name: Install |
27 | | - run: yarn install --frozen-lockfile |
28 | | - - name: Clean |
29 | | - run: yarn clean |
30 | | - - name: Test |
31 | | - run: yarn test |
32 | | - - name: Clean |
33 | | - run: yarn clean |
34 | | - - name: Build |
35 | | - run: yarn build:packages |
36 | | - - name: Publish |
37 | | - run: yarn deploy --yes |
38 | | - env: |
39 | | - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
40 | | - - name: Create Release Notes |
41 | | - run: yarn create-release-notes |
42 | | - env: |
43 | | - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
44 | | - - name: 'Get message' |
45 | | - id: 'deploy_message' |
46 | | - run: | |
47 | | - echo "::set-output name=commit_msg::$(git log -1 --format=%B)" |
48 | | - echo "::set-output name=commit_sha::$(git log -1 --format=%H)" |
49 | | - - name: Slack Notify |
50 | | - uses: rtCamp/action-slack-notify@v2.2.0 |
51 | | - env: |
52 | | - SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} |
53 | | - SLACK_MESSAGE: ${{ steps.deploy_message.outputs.commit_msg }} |
54 | | - SLACK_USERNAME: Mux Elements |
55 | | - SLACK_ICON: https://avatars.githubusercontent.com/muxinc?size=48 |
56 | | - SLACK_FOOTER: '' |
| 9 | +# jobs: |
| 10 | +# deploy: |
| 11 | +# runs-on: ubuntu-latest |
| 12 | +# environment: production |
| 13 | +# steps: |
| 14 | +# - uses: actions/checkout@v3 |
| 15 | +# with: |
| 16 | +# fetch-depth: 0 # Fetch all history for all tags and branches |
| 17 | +# - name: read node version from the .nvmrc file |
| 18 | +# run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc) |
| 19 | +# shell: bash |
| 20 | +# id: nvmrc |
| 21 | +# - uses: actions/setup-node@v3 |
| 22 | +# with: |
| 23 | +# node-version: ${{steps.nvmrc.outputs.NODE_VERSION}} |
| 24 | +# # this line is required for the setup-node action to be able to run the npm publish below. |
| 25 | +# registry-url: 'https://registry.npmjs.org' |
| 26 | +# - name: Install |
| 27 | +# run: yarn install --frozen-lockfile |
| 28 | +# - name: Clean |
| 29 | +# run: yarn clean |
| 30 | +# - name: Test |
| 31 | +# run: yarn test |
| 32 | +# - name: Clean |
| 33 | +# run: yarn clean |
| 34 | +# - name: Build |
| 35 | +# run: yarn build:packages |
| 36 | +# - name: Publish |
| 37 | +# run: yarn deploy --yes |
| 38 | +# env: |
| 39 | +# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
| 40 | +# - name: Create Release Notes |
| 41 | +# run: yarn create-release-notes |
| 42 | +# env: |
| 43 | +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 44 | +# - name: 'Get message' |
| 45 | +# id: 'deploy_message' |
| 46 | +# run: | |
| 47 | +# echo "::set-output name=commit_msg::$(git log -1 --format=%B)" |
| 48 | +# echo "::set-output name=commit_sha::$(git log -1 --format=%H)" |
| 49 | +# - name: Slack Notify |
| 50 | +# uses: rtCamp/action-slack-notify@v2.2.0 |
| 51 | +# env: |
| 52 | +# SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} |
| 53 | +# SLACK_MESSAGE: ${{ steps.deploy_message.outputs.commit_msg }} |
| 54 | +# SLACK_USERNAME: ix-elements |
| 55 | +# SLACK_ICON: https://avatars.githubusercontent.com/imgix?size=48 |
| 56 | +# SLACK_FOOTER: '' |
0 commit comments