From a47b37215f42766b017c33ddec4a0ac84fb17175 Mon Sep 17 00:00:00 2001 From: LyhourChhen Date: Wed, 29 Jul 2020 13:48:42 +0700 Subject: [PATCH 1/3] Update build.yml --- .github/workflows/build.yml | 34 ++++++++++++++++------------------ 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index acf8d4d..64c31d3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,7 +10,8 @@ jobs: strategy: matrix: node: ['10'] - name: Node ${{ matrix.node }} sample + name: Node ${{ matrix.node }} + steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v1 @@ -27,20 +28,17 @@ jobs: - run: npm publish env: NODE_AUTH_TOKEN: ${{ secrets.GH }} -# steps: -# - uses: actions/checkout@v2 -# - uses: actions/setup-node@v1 -# with: -# node-version: '10.x' -# registry-url: 'registry.npmjs.org' -# - run: yarn install -# - run: yarn publish -# env: -# NODE_AUTH_TOKEN: ${{ secrets.YARN_TOKEN }} - # - uses: actions/setup-node@v1 - # with: - # registry-url: 'https://npm.pkg.github.com' - # - run: yarn install - # - run: yarn publish - # env: - # NODE_AUTH_TOKEN: ${{ secrets.GH }} + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + body: | + Changes in this Release + - First Change + - Second Change + draft: false + prerelease: false From cdd9a41cd0f1df7ee16e8f2dc0e3fb682c615be0 Mon Sep 17 00:00:00 2001 From: LyhourChhen Date: Wed, 29 Jul 2020 13:51:46 +0700 Subject: [PATCH 2/3] Update build.yml --- .github/workflows/build.yml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 64c31d3..1e82481 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,21 +13,21 @@ jobs: name: Node ${{ matrix.node }} steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 - with: - node-version: '10.x' - registry-url: 'https://registry.npmjs.org' - - run: npm install - - run: npm publish - env: - NODE_AUTH_TOKEN: ${{ secrets.YARN_TOKEN }} - - uses: actions/setup-node@v1 - with: - registry-url: 'https://npm.pkg.github.com' - - run: npm publish - env: - NODE_AUTH_TOKEN: ${{ secrets.GH }} +# - uses: actions/checkout@v2 +# - uses: actions/setup-node@v1 +# with: +# node-version: '10.x' +# registry-url: 'https://registry.npmjs.org' +# - run: npm install +# - run: npm publish +# env: +# NODE_AUTH_TOKEN: ${{ secrets.YARN_TOKEN }} +# - uses: actions/setup-node@v1 +# with: +# registry-url: 'https://npm.pkg.github.com' +# - run: npm publish +# env: +# NODE_AUTH_TOKEN: ${{ secrets.GH }} - name: Create Release id: create_release uses: actions/create-release@v1 From 06315cd27ff52851156c14a8b06985543e3b41a5 Mon Sep 17 00:00:00 2001 From: LyhourChhen Date: Wed, 29 Jul 2020 13:52:18 +0700 Subject: [PATCH 3/3] Update build.yml --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1e82481..cb091d9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -32,7 +32,7 @@ jobs: id: create_release uses: actions/create-release@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token + GITHUB_TOKEN: ${{ secrets.GH }} # This token is provided by Actions, you do not need to create your own token with: tag_name: ${{ github.ref }} release_name: Release ${{ github.ref }}