We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85b0835 commit 51acb82Copy full SHA for 51acb82
.github/workflows/publish-to-dev-to.yml
@@ -0,0 +1,15 @@
1
+name: Dev.to Publish
2
+on: [push]
3
+jobs:
4
+ build:
5
+ runs-on: ubuntu-latest
6
+ steps:
7
+ - uses: actions/checkout@v2
8
+ - uses: actions/setup-node@v1
9
+ with:
10
+ node-version: '12.x'
11
+ registry-url: 'https://registry.npmjs.org'
12
+ - run: npm install -g axios
13
+ - run: node dev-to.js
14
+ env:
15
+ DEV_TOKEN: ${{ secrets.DEV_TO }}
dev-to.js
@@ -0,0 +1,3 @@
+// const axios = require('axios');
+console.log('hello world')
+console.log(`The Dev token is ${process.env.DEV_TOKEN}`)
0 commit comments